Git Product home page Git Product logo

docker-invenio's Introduction

CentOS 7 with Python 3 for Invenio

Build Status image image

This image serves as base image for Invenio instances running on CentOS7. The purpose is to provide a base image that is usable in production environments like OpenShift.

The image is based on the official CentOS image centos:7 and contains:

  • Python 3.6 set as default Python interpreter with upgraded versions of pip, pipenv, setuptools and wheel.
  • Tools: Node.js, NPM, Git, Curl Vim, Emacs, Development Tools.
  • Library devel packages: libffi, libxml2, libxslt.
  • Working directory for an Invenio instance.

Supported tags and respective Dockerfile links

Usage

This image is used by the scaffolded Dockerfile in the Invenio getting started guide. See the guide for quickly getting started.

Create a Dockerfile

A simple Dockerfile using this base image could look like this:

FROM inveniosoftware/centos7-python:3.6
COPY ./ .
COPY ./docker/uwsgi/ ${INVENIO_INSTANCE_PATH}
RUN ./scripts/bootstrap

Environment variables

The following environment variables has been set:

  • WORKING_DIR=/opt/invenio
  • INVENIO_INSTANCE_PATH=/opt/invenio/var/instance
  • INVENIO_USER_ID=1000

Rolling builds

The image is rebuild when the base image centos7:latest is updated. The base image is receiving regular monthly updates as well as emergency fixes.

Automated builds

Automated builds are configured using Docker Hub builds. The triggers are defined the following way:

Branch/tag               Dockerfile                Docker tag

Push to master     ---> /python3.6/Dockerfile ---> 3.6
Push /^3\.6.*/ tag ---> /python3.6/Dockerfile ---> git-tag-name, 3.6

This way, we will use tag 3.6 as latest for Python version and there is also the possibility to push tags for specific use cases such as pinning certain libraries or patches.

License

Copyright (C) 2018-2019 CERN.

Docker-Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details.

docker-invenio's People

Contributors

blankoworld avatar chiarabi avatar dinosk avatar fenekku avatar lnielsen avatar okraskaj avatar topless avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.