Rally's standard Docker image definitions (i.e. Dockerfiles)
Docker images will be hosted by Artifactory at docker.werally.in. See wiki page: Artifactory as our Docker Registry.
These are all built and pushed to artifactory manually or via the instructions at the end of the README
Have docker installed on your machine.
for linux, install docker.io at least version 1.6 (1.9 is the current one).
for mac, install docker for mac.
Docker login for the push step
to create a login (needs to be done only once). It will generate a ~/.docker/config.json file on the users' home directory.
Create or get your Artifactory (aka docker.werally.in) credentials using this guide
$ docker login docker.werally.in
Docker create image locally
To create a docker image, you need these steps:
- go into the right directory (the one with a Dockerfile)
run docker build to build the image.
docker build --tag <container-name> <source-directory>
Push container to artifactory
To push a docker container to artifactory, follow these steps:
- Create a PR for your Dockerfile change
- find all current tags for your container using
curl <username>:<password>@docker.werally.in/v2/<container name>/tags/list | grep tags
- After the PR is reviewed, make a comment like:
push version <version number>(existing versions will not be overwritten and the job will fail)
NOTE: the container name will follow the directory structure of this repo. For example, this file https://github.com/AudaxHealthInc/docker/tree/master/java8/sbt_0.13.8
will produce a container named "java8/sbt_0.13.8"
When running on Mesos using Marathon, you will need provide credentials to the docker inside Mesos.
For that, please refer to mesos-apps repo.