Build system for creating Docker image used to run hepdata-converter-ws
This is a companion repository for the hepdata-converter-ws repository.
This repository automates building Docker images with the help of GitHub Actions and then pushing them to Docker Hub. The Docker image installs hepdata-converter-ws from PyPI and then runs the web service (on its default port, 5000).
The basic workflow is as follows:
- Modify the
Dockerfile
(or any other files) (e.g. to fix the PyPI version of hepdata-converter-ws) - Commit it to the repository
- Push the code to GitHub
- GitHub Actions will create a Docker image from the
Dockerfile
and upload it to Docker Hub
GitHub Actions already has Docker Hub credentials in its encrypted variables. If credentials are ever changed also update the secure variables in the GitHub Actions build, otherwise the image will be created but not uploaded.
Warning: any build on the main branch (or a tagged release) will trigger upload of the new image, so be cautious about it, especially if you plan to start breaking things.
Run me
docker pull hepdata/hepdata-converter-ws
docker run --restart=always -d --name=hepdata_converter -p 0.0.0.0:5500:5000 hepdata/hepdata-converter-ws hepdata-converter-ws