-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding oc binary to bin path for multi stage test infra (#3362)
* Adding oc binary to bin path for multi stage test infra * Added file permission locally and excluding it from docker file * Created different dockerfile to avoid master break and proceed with multistage changes
- Loading branch information
1 parent
e28812a
commit 4b29931
Showing
2 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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,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 |