Docker files in this directory are used to build images used by CircleCI. These are directly referenced in the circle.yml
after publishing to dockerhub. There are two types of images:
ubuntu1910_j11.docker
)Build images from the parent directory using the following commands. Change tag (-t
) as needed (prefix and current date):
Base image:
docker build -t nastra/cassandra-testing-ubuntu1910-java11:20200603 -t nastra/cassandra-testing-ubuntu1910-java11:latest -f ubuntu1910_j11.docker .
Caching image:
docker build --no-cache -t nastra/cassandra-testing-ubuntu1910-java11-w-dependencies:20200603 -t nastra/cassandra-testing-ubuntu1910-java11-w-dependencies:latest -f ubuntu1910_j11_w_dependencies.docker .
Please make sure to always tag also by date, so we can go back to that version in case anything breaks after the next update!
We are using Docker Hub for storing published images. See Quick Start Guide on how to setup docker.
Push both image references:
docker push nastra/cassandra-testing-ubuntu1910-java11-w-dependencies:20200603 docker push nastra/cassandra-testing-ubuntu1910-java11-w-dependencies:latest
Check if the correct image is used in .circleci/config-2_1.yml
by looking for the - image:
value. It should either be set to the date dervived tag created above, or :latest
.