uft: set docker image tag correctly
Docker image custom build script is always passed the expected image name/tag as the last argument by the master build script. This project was ignoring that argument and always generated an image called "uft:latest". Solution: use last command-line argument as the image name/tag to be generated. TESTS ====================== * Build & push uft image via Jenkins Closes-Bug: 2034255 Change-Id: Ieeea76ae9dc9b47a2c6c6875a66e0b3879baf497 Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
This commit is contained in:
parent
e421dea1c4
commit
63b6de62b5
@ -3,14 +3,20 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (c) 2023 Intel Corporation
|
||||
|
||||
echo "=============== build script ================"
|
||||
echo image: uft
|
||||
echo image_tag: v22.07
|
||||
# The last argument to this script is the full image name/tag
|
||||
# we should generate, such as starlingx/uft:master-debian-TIMESTAMP
|
||||
IMAGE_TAG="$1"
|
||||
DPDK_TAG="v22.07"
|
||||
|
||||
docker build -t uft -f images/Dockerfile.uft . \
|
||||
echo "=============== build script ================"
|
||||
echo "image: uft"
|
||||
echo "image_tag: $IMAGE_TAG"
|
||||
echo "DPDK_TAG=$DPDK_TAG"
|
||||
|
||||
docker build -t "$IMAGE_TAG" -f images/Dockerfile.uft . \
|
||||
--build-arg http_proxy="$http_proxy" \
|
||||
--build-arg https_proxy="$https_proxy" \
|
||||
--build-arg DPDK_TAG=v22.07 \
|
||||
--build-arg DPDK_TAG="$DPDK_TAG" \
|
||||
--build-arg UFT_INSTALL_PATH=/usr/local/lib64
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user