forked from sclorg/container-common-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for remote cluster tests
Also share BASE_IMAGE_NAME variable so it can be used in tests.
- Loading branch information
Showing
4 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -505,3 +505,5 @@ EOF | |
docker build -f "$df_name" -t "$dst_image" . | ||
popd | ||
} | ||
|
||
# vim: set tabstop=2:shiftwidth=2:expandtab: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# This script is used to test container images integrated in the OpenShift. | ||
# | ||
# VERSIONS - Must be set to a list with possible versions (subdirectories) | ||
# | ||
# This script expects oc command to exist and logged in to a working cluster. | ||
|
||
set -e | ||
|
||
export OS=${OS:-rhel7} | ||
|
||
if [ "${OS}" == "rhel7" ] ; then | ||
NAMESPACE=${NAMESPACE:-rhscl/} | ||
REGISTRY=${REGISTRY:-registry.access.redhat.com/} | ||
else | ||
NAMESPACE=${NAMESPACE:-centos/} | ||
fi | ||
|
||
export NAMESPACE | ||
export REGISTRY | ||
|
||
for dir in ${VERSIONS}; do | ||
pushd ${dir} > /dev/null | ||
|
||
export IMAGE_NAME="${REGISTRY}${NAMESPACE}${BASE_IMAGE_NAME}-${dir//./}-${OS}" | ||
|
||
VERSION=$dir test/run-openshift-remote-cluster | ||
|
||
popd > /dev/null | ||
done | ||
|
||
# vim: set tabstop=2:shiftwidth=2:expandtab: |