calicoctl-utility container image

This container builds a small image with calicoctl-utility service and some other utilities for use bt the operator.

Manual build

Here are the instructions for building the image:

IMAGE="calicoctl-utility"
VERSION=${VERSION:-v3.4.4}
DISTRO=${DISTRO:-alpine}
REGISTRY_URI=${REGISTRY_URI:-"openstackhelm/"}
EXTRA_TAG_INFO=${EXTRA_TAG_INFO:-""}

docker build -f ${IMAGE}/Dockerfile.${DISTRO} \
--network=host \
--build-arg CALICOCTL_VERSION=${VERSION} \
-t ${REGISTRY_URI}${IMAGE}:${VERSION}-${DISTRO}${EXTRA_TAG_INFO} \
${extra_build_args} \
${IMAGE}

Alternatively, this step can be performed by running the script directly:

./calicoctl-utility/build.sh