31135ddec6
This PS is to update the node problem detector base image to focal from bionic. Change-Id: Ib0c4e9234712483222b64a35f333fb9d29bf9809
18 lines
487 B
Bash
Executable File
18 lines
487 B
Bash
Executable File
#!/bin/bash
|
|
SCRIPT=`realpath $0`
|
|
SCRIPT_DIR=`dirname ${SCRIPT}`
|
|
## Only build from main folder
|
|
cd ${SCRIPT_DIR}/..
|
|
|
|
IMAGE="node-problem-detector"
|
|
VERSION=${VERSION:-latest}
|
|
DISTRO=${DISTRO:-ubuntu_focal}
|
|
REGISTRY_URI=${REGISTRY_URI:-"openstackhelm/"}
|
|
EXTRA_TAG_INFO=${EXTRA_TAG_INFO:-""}
|
|
|
|
NPD_VERSION=${NPD_VERSION:-v0.8.10}
|
|
|
|
docker build -f ${IMAGE}/Dockerfile.${DISTRO} --network=host -t ${REGISTRY_URI}${IMAGE}:${VERSION}-${DISTRO}${EXTRA_TAG_INFO} ${extra_build_args} ${IMAGE}
|
|
|
|
cd -
|