This project is developed by using Golang.
The repository provides a Makefile
with different make targets for building the project.
In order to build the application binary, use the go_build
make target.
make go_build
The binary will be available in the cmd/target
folder named as strimzi-canary
that you can just run locally from the root project folder.
./cmd/target/strimzi-canary
To build the container image, use the docker_build
make target together with the docker_push
one if you want to push it to a registry as well.
make docker_build docker_push
It is possible to customize the container image build by using the following environment variables:
DOCKER_CMD
: the Docker binary to use for all container commands (default isdocker
).DOCKER_REGISTRY
: the Docker registry where the image will be pushed (default isdocker.io
).DOCKER_ORG
: the Docker organization for tagging/pushing the image (defaults to the value of the$USER
environment variable).DOCKER_TAG
: the Docker tag (default islatest
).DOCKER_REPO
: the Docker repository where the image will be pushed (default iscanary
).