Skip to content

Commit

Permalink
Adding oc binary to bin path for multi stage test infra
Browse files Browse the repository at this point in the history
  • Loading branch information
prietyc123 committed Jun 17, 2020
1 parent 6766eb0 commit 2a0e880
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openshift-ci/build-root/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ 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 ./check-oc.sh .
RUN chmod +x ./check-oc.sh
10 changes: 10 additions & 0 deletions openshift-ci/build-root/check-oc.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2a0e880

Please sign in to comment.