diff --git a/openshift-ci/build-root/multistage/Dockerfile b/openshift-ci/build-root/multistage/Dockerfile new file mode 100644 index 00000000000..8dacf86f35d --- /dev/null +++ b/openshift-ci/build-root/multistage/Dockerfile @@ -0,0 +1,10 @@ +# Dockerfile to bootstrap build and test in openshift-ci + +FROM registry.svc.ci.openshift.org/openshift/release:golang-1.12 + +RUN yum -y install make wget gcc git httpd-tools + +# This is a temporary change to make sure that it should run on both template based as well as multi-stage test +# will remove this change once we completely migrate to multi-stage test infra +COPY openshift-ci/build-root/check-oc.sh . +RUN ./check-oc.sh diff --git a/openshift-ci/build-root/multistage/check-oc.sh b/openshift-ci/build-root/multistage/check-oc.sh new file mode 100755 index 00000000000..0f31fed6f00 --- /dev/null +++ b/openshift-ci/build-root/multistage/check-oc.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -x + +## Constants +OC_BINARY="./oc" + +# Copy oc binary to bin path +if [ -f $OC_BINARY ]; then + cp ./oc /usr/bin/oc +fi