These Dockerfiles are used to build docker images we use for various Elixir and Erlang containers at Avvo.
- Clone this repo
- Edit the Dockerfile you want to update
- Keep the primary version number of the image in sync with the Elixir version. So tag '1.6.2' should be Elixir version 1.6.2. Any changes to the Dockerfile that are not Elixir version related should increase the letter version.
- Build and push an image with a version tag
Calling push.sh
with no argument will use the directory name as the tag. For
example, the following command will push an erlang
image with the tags
20.2.4
and latest
to Dockerhub:
cd erlang/20.2.4
../../push.sh
If an argument is passed to push.sh
, it will be used as a suffix appended with
a -
to the current directory name. For example, the following command will
push an elixir
image with the tags 1.6.2-b
and latest
to Dockerhub:
cd elixir/1.6.2
../../push.sh b
- You need permissions to write the images on dockerhub. If you're not an Avvo person, you probably don't have access. You can push it up to your own namespace.
- Test out your changes on a tag before committing and pushing to latest.
MIT Licence. Do what you want, this is just configuration, nothing special.