A collection of Dockerfiles
This repo holds a number of Dockerfiles for building "base" images that can then be used in other projects.
The Dockerfiles contained in this repo are built and pushed to Docker Hub.
You can use them in a Dockerfile:
FROM idigbio/docker-library.base-idb-backend
You can run them directly:
$ docker run --rm -it idigbio/docker-library.base-idb-backend bash
There are 3 steps to add a new Dockerfile to this library repo.
- Create a new directory. Choose wisely because the directory name will also be used as the docker hub repository name.
- In the new directory, add and customize
README.md
andDockerfile
- Add new job specifics to the top level
.travis.yml
in thejobs.include
section, using the directory name as the value of DOCKERFILE_DIR and as a component of DOCKER_IMAGE_NAME.
Example:
jobs:
include:
- name: "Base for idb-backend"
env:
- DOCKERFILE_DIR=base-idb-backend
- DOCKER_IMAGE_NAME=idigbio/docker-library.base-idb-backend
When the changes are comitted to master, Travis will trigger builds of new docker images and push them to Docker Hub.