mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
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
This commit is contained in:
10
openshift-ci/build-root/multistage/Dockerfile
Normal file
10
openshift-ci/build-root/multistage/Dockerfile
Normal file
@@ -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
|
||||
10
openshift-ci/build-root/multistage/check-oc.sh
Executable file
10
openshift-ci/build-root/multistage/check-oc.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user