X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fdocker-build.sh;fp=shell%2Fdocker-build.sh;h=982a61f59d9d5b96ca09e9b52ce04a1ac3e62cad;hb=8f00e059ea64956604ea2d23ebe46e4fda788cdf;hp=0000000000000000000000000000000000000000;hpb=c36acacf22c4e6708ae6bb13b74fec2d09e3dbf4;p=releng%2Fglobal-jjb.git diff --git a/shell/docker-build.sh b/shell/docker-build.sh new file mode 100644 index 00000000..982a61f5 --- /dev/null +++ b/shell/docker-build.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# SPDX-License-Identifier: EPL-1.0 +############################################################################## +# Copyright (c) 2019 The Linux Foundation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################## +echo "---> docker-build.sh" +# Docker image build script + +set -eu -o pipefail + +cd "$DOCKER_ROOT" +# DOCKER_IMAGE variable gets constructed after lf-docker-get-container-tag builder step +# is executed. It constructs the image name and the appropriate tag in the same varaiable. +docker build "$DOCKER_ARGS" . -t "$DOCKER_IMAGE" | tee "$WORKSPACE/docker_build_log.txt"