control-m/301-statefulset-agent-to-run-k8s-jobs-using-ai-job/9.0.21.000/build_docker_example.sh
# This is a build command example with parameters
# You need to set :
#   1. AGENT_IMAGE_NAME - the agent image you want to install (taken from "ctm provision images Linux" cli)
#   2. EXT_AUTO_DEPLOY - a path to a local repository of installation artifacts for provisioning actions performed by the Provision service. It can be folder path (file:///) or URL (https://)
#   3. EXT_APPLICATION_ARTIFACTS_JSON_URL - a path to a local repository of provisioning images, overriding the location used by default for provisioning actions performed by the Provision service. It can be folder path (file:///) or URL (https://)
#   4. DOCKER_IMAGE_NAME - the docker image name and optionally a tag in the 'name:tag' format
sudo docker build --build-arg AGENT_IMAGE_NAME=Agent --build-arg EXT_AUTO_DEPLOY="$EXT_AUTO_DEPLOY" --build-arg EXT_APPLICATION_ARTIFACTS_JSON_URL="$EXT_APPLICATION_ARTIFACTS_JSON_URL" -t "$DOCKER_IMAGE_NAME" docker

# Don't forget to upload the result to your docker repository (ECR, DockerHub, etc.) for k8s use.