inspirehep/inspire-docker

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

inspire-docker

Build Status

Usage

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
Testing changes to this repo

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:

Build the new images

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
run the tests

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.