openstack-helm-images/prometheus-openstack-exporter/build.sh
Bharat Khare fefb878740 Python 2.7 to 3.x for openstack-exporter
Make required changes in openstack helm image of
Prometheus-openstack-exporter to move from python 2.7 to 3.x

Change-Id: I27de3d7f6b6877430751d33b940de3ead7906dc6
Co-Authored By: Steven Fitzpatrick <steven.fitzpatrick@att.com>
2019-10-16 20:33:16 +00:00

15 lines
458 B
Bash
Executable File

#!/bin/bash
SCRIPT=`realpath $0`
SCRIPT_DIR=`dirname ${SCRIPT}`
## Only build from main folder
cd ${SCRIPT_DIR}/..
IMAGE="prometheus-openstack-exporter"
VERSION=${VERSION:-latest}
DISTRO=${DISTRO:-ubuntu_bionic}
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 -