Container template repo for building joint docker and singularity images. The template assumes the docker image contains the container, and the singularity file simply pulls down the docker image and converts it to a singularity container.
-
Instantiate template using
cookiecutter
:cookiecutter https://github.com/dl-container-registry/container-cookiecutter
-
Create a new github repository with the same name that you entered for
repo_name
in the template. -
Set up GitHub Auto-Deployment integration in settings.
- Github Token: Your GitHub token (obtained from developer
settings with
repo_deployment
privileges) - Environment:
singularity
- Deploy on status: tick
- GitHub api url: empty
- Github Token: Your GitHub token (obtained from developer
settings with
-
Set up Singularity hub
- Create a new container collection.
- Change settings:
- Build Trigger: Deployment
- Save.
- Note Singularity Hub ID, replace
SH_ID
with your ID in the README.
-
Set up Travis
- Enable travis on repository.
- Click the cog next to the repository to go to the settings.
- Set
DOCKER_USERNAME
to your docker username. - Set
DOCKER_PASSWORD
to your docker password (make sure you to quote the full password in case your password has special characters).