fefb878740
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>
15 lines
458 B
Bash
Executable File
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 -
|