--- /dev/null
+---
+fixes:
+ - |
+ Extend scripts that invoke the docker CLI to report the version
+ by invoking `docker --version`. Also add echo command to report
+ end of script where it was missing. Includes docker-build.sh,
+ docker-login.sh, docker-push.sh and release-job.sh. No functional
+ change to any script behavior, just a line of extra output.
# Docker image build script
set -eu -o pipefail
-echo "---> Building image: $CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG"
+docker --version
+echo "Building image: $CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG"
cd "$DOCKER_ROOT"
# DOCKER_IMAGE_TAG 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_command="docker build ${DOCKER_ARGS:-} -t "$CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG" ."
echo "$docker_build_command"
eval "$docker_build_command" | tee "$WORKSPACE/docker_build_log.txt"
+echo "---> docker-build.sh ends"
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
-echo "---> docker-login.sh"
# Log into a custom hosted docker registry and / or docker.io
# $DOCKER_REGISTRY : Optional
#2) User logging into docker.io with docker version <17.06.0 email optional
#3) User logging into docker.io wiht docker version >= 17.06.0 cannot use email flag
-
+echo "---> docker-login.sh"
# Ensure we fail the job if any steps fail
set -eu -o pipefail
do_login "$DOCKERHUB_REGISTRY" none
fi
fi
+
+echo "---> docker-login.sh ends"
# Ensure we fail the job if any steps fail
set -ue -o pipefail
-echo "---> Pushing image: $CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG"
+docker --version
+echo "Pushing image: $CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG"
docker_push_command="docker push "$CONTAINER_PUSH_REGISTRY/$DOCKER_NAME:$DOCKER_IMAGE_TAG""
echo "$docker_push_command"
eval "$docker_push_command"
+echo "---> docker-push.sh ends"
container_release_file(){
echo "INFO: Processing container release"
+ docker --version
local lfn_umbrella
lfn_umbrella="$(echo "$GERRIT_URL" | awk -F"." '{print $2}')"