The scripts and docker images used for testing, building and deploying.
Installing docker is a prerequisite. The instructions differ depending on the environment. Docker is comprised of two parts: the daemon server which runs on Linux and accepts commands, and the client which is a Go program capable of running on MacOS, all Unix variants and Windows.
Follow the Docker install instructions.
The build image is a basic image containing Helm. To use it:
/.../helm-charts $ ./build/builder.sh helm package cockroachdb
- Edit
build/builder/Dockerfile
as desired - Run
build/builder.sh init
to test -- this will build the image locally. The result ofinit
is a docker image version which you can subsequently stick into theversion
variable inside thebuilder.sh
script for testing locally. - Once you are happy with the result, run
build/builder.sh push
which pushes your image towards Docker hub, so that it becomes available to others. The result is again a version number, which you then must copy back intobuild/builder.sh
. Then commit the change to both Dockerfile andbuild/builder.sh
and submit a PR.