Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion _common/docker.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ function _verify_vendor_is_not_folder() {
function build_docker_container() {
local IMAGE_NAME=$1
local CONTAINER_NAME=$2
local BUILDER_CONFIGURATION="release"
if [[ $# -eq 3 ]]; then
BUILDER_CONFIGURATION=$3
fi

_verify_vendor_is_not_folder

# Download docker image. --mount option requires BuildKit
DOCKER_BUILDKIT=1 docker build -t $IMAGE_NAME .
DOCKER_BUILDKIT=1 docker build -t $IMAGE_NAME --build-arg BUILDER_CONFIGURATION="${BUILDER_CONFIGURATION}" .
}

function start_docker_container() {
Expand Down