openstack-helm-images/gate-utils/build.sh
Vladimir Kozhukalov 48b2fac501 Fix gate-utils image build job
- Use ubuntu:focal as a base image
- Do not build the gate-utils image weekly.
  The only place we use this image is in the
  kube-node-subnet.sh script where we use the
  image published a while ago.
  And the only package we install into this image
  is ipcalc.

Change-Id: I06dfaef2e429f690b8ca7583933fa85eabcbfea8
2023-06-30 02:16:28 +03:00

15 lines
438 B
Bash
Executable File

#!/bin/bash
SCRIPT=`realpath $0`
SCRIPT_DIR=`dirname ${SCRIPT}`
## Only build from main folder
cd ${SCRIPT_DIR}/..
IMAGE="gate-utils"
VERSION=${VERSION:-latest}
DISTRO=${DISTRO:-ubuntu_focal}
REGISTRY_URI=${REGISTRY_URI:-"openstackhelm/"}
EXTRA_TAG_INFO=${EXTRA_TAG_INFO:-""}
docker build -f ${IMAGE}/Dockerfile.${DISTRO} --network=host -t ${REGISTRY_URI}${IMAGE}:${VERSION}-${DISTRO}${EXTRA_TAG_INFO} ${extra_build_args} ${IMAGE}
cd -