hepdata-converter-docker
Build system for creating Docker image used by Travis CI testing framework for hepdata-converter
This is a companion repository for the
hepdata-converter
repository (it is also included there as a submodule in the
docker
directory).
This repository has only one purpose: to separate the Dockerfile
from the
main hepdata-converter
repository, in order to automate building Docker images with the help of
Travis CI and
then pushing them to
DockerHub.
The Docker image hepdata-converter
contains the
ROOT and YODA
dependencies needed for running the
hepdata-converter code.
The basic workflow is as follows:
- Modify
Dockerfile
/requirements.txt
(or any other files). - Commit it to the repository.
- Push the code.
- Travis will create a Docker image from the
Dockerfile
and upload it to DockerHub.
For developers
This repository contains a file requirements.txt
. It is here on
purpose and should not be duplicated in the
hepdata-converter
repository. Also
Travis CI
already has DockerHub credentials in its encrypted variables. If
credentials are ever changed, update the secure variables in the Travis
CI build, otherwise the Docker image will be created but not uploaded.
Warning: any build on the master branch (or a tagged release) will trigger upload of the new Docker image to DockerHub, so be cautious about it, especially if you plan to start breaking things.