Name: inspire-docker
Owner: inspirehep
Description: Dockerfiles for inspirehep/inspire-next application
Created: 2015-09-24 10:04:09.0
Updated: 2018-04-26 08:55:20.0
Pushed: 2018-04-26 08:55:18.0
Homepage: null
Size: 75
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Install Docker: https://docs.docker.com/engine/installation/
To grab a Python image having (almost) all the dependencies cached for pip-accel
In which you can install the overlay:
er pull inspirehep/python-base:latest
If you want a specific Python version you can do:
er pull inspirehep/python-base:python2.7
Python 3.5 is still not compatible.
To grab an Elasticsearch image having all the plugins needed for running the Overlay do:
er pull inspirehep/elasticsearch:latest
In order to test any changes you do to the Dockerfiles in this repo, you can build and test them locally before sending a pull request:
Building the images is as easy as running the docker build with the appropiate tag, for example:
er build -f python_base/Dockerfile -t inspirehep/python-base .
Or alternatively run the build script, setting up any required env vars (see the .travis.yml for the latest possible values):
rt TRAVIS_BRANCH=master
rt DOCKER_PROJECT=inspirehep/python-base
rt DOCKER_IMAGE_TAG=latest
rt DOCKERFILE=python_base/Dockerfile
rt ARGS='--build-arg=INSPIRE_PYTHON_VERSION=2.7'
ild.sh --help
ild.sh
That will locally build and tag the image, to verify just list the local images:
er images
To run the tests locally you will have to set some environment variables that the scripts expect to be there (set by travis, see the .travis.yml file for more example values). The script will complain if any of the env vars is not set when running so you can just run it to check the latest need. An exampe that works at the time of writing this:
rt TRAVIS_BRANCH=master
rt DOCKER_COMPOSE_VERSION=1.6.2
rt DOCKER_PROJECT=inspirehep/python-base
rt DOCKER_IMAGE_TAG=latest
st.sh --help
st.sh --no-install-compose