openstack-helm-images/node-problem-detector/build.sh
Pai Radhika f1948f99cc Node Problem Detector Image
This ps is to create a new image for NPD in openstack-helm-images
repo using the Ubuntu base instead of Debian, since the upstream Debian
image has some security vulnerabilities
The upstream Docker Image: k8s.gcr.io/node-problem-detector:v0.8.2

Change-Id: I532922a4d678665d184f9eab6fce1a1ce2d1000d
2020-07-13 20:17:26 +00:00

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_bionic}
REGISTRY_URI=${REGISTRY_URI:-"openstackhelm/"}
EXTRA_TAG_INFO=${EXTRA_TAG_INFO:-""}
NPD_VERSION=${NPD_VERSION:-v0.8.2}
docker build -f ${IMAGE}/Dockerfile.${DISTRO} --network=host -t ${REGISTRY_URI}${IMAGE}:${VERSION}-${DISTRO}${EXTRA_TAG_INFO} ${extra_build_args} ${IMAGE}
cd -