1
0
stack-orchestrator/app/data/container-build/default-build.sh
David Boreham 332085f80b Add force rebuild option (#329)
Former-commit-id: 1443c6c6d20f3e9f95432e87ea61109c6b0f1beb
2023-04-14 14:19:27 -06:00

14 lines
488 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: default-build.sh <image-tag> [<repo-relative-path>]
# if <repo-relative-path> is not supplied, the context is the directory where the Dockerfile lives
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
if [[ $# -ne 2 ]]; then
echo "Illegal number of parameters" >&2
exit 1
fi
image_tag=$1
build_dir=$2
docker build -t ${image_tag} ${build_command_args} --build-arg CERC_HOST_UID=${CERC_HOST_UID} --build-arg CERC_HOST_GID=${CERC_HOST_GID} ${build_dir}