8c633a76c1
This change updates the osh-selenium image to be built on ubuntu:bionic and to use python3 instead of python2 Change-Id: Id47448a55866dcf582b9e3801ea5f57f11068242
15 lines
441 B
Bash
Executable File
15 lines
441 B
Bash
Executable File
#!/bin/bash
|
|
SCRIPT=`realpath $0`
|
|
SCRIPT_DIR=`dirname ${SCRIPT}`
|
|
## Only build from main folder
|
|
cd ${SCRIPT_DIR}/..
|
|
|
|
IMAGE="osh-selenium"
|
|
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 -
|