-
Notifications
You must be signed in to change notification settings - Fork 14
/
common.sh
29 lines (23 loc) · 1.18 KB
/
common.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
USER=`whoami`
if [ -z "$CONFIG" ]; then
echo "Please run with a configuration environment set."
echo "eg CONFIG=config_example.sh ./01_all_in_one.sh"
exit 1
fi
source $CONFIG
cat $CONFIG
export REGISTRY=${REGISTRY:-$LOCAL_IP:8787}
export REPO=${REPO:-$REGISTRY/openshift}
export RHCOS_IMAGE_VERSION="${RHCOS_IMAGE_VERSION:-47.188}"
export RHCOS_IMAGE_NAME="redhat-coreos-maipo-${RHCOS_IMAGE_VERSION}"
export RHCOS_IMAGE_FILENAME="${RHCOS_IMAGE_NAME}-openstack.qcow2"
# NOTE(flaper87): Hardcoding the CI release image until we stabilize OpenStack based deployments.
# This forces the installer to use the latest release image built in CI and, therefore, pick the latest
# images built for every component. There should not be propagation delays for component's images when
# using this release image.
export OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE="registry.svc.ci.openshift.org/openshift/origin-release:v4.0"
# We are pinning to upstream tripleo version. This has passed CI promotion.
# We'll have to check once in a while for a new version though.
TRIPLEO_VERSION='54c5a6de8ce5b9cfae83632a7d81000721d56071_786d88d2'