Adding oc from build to container image (#3418)

This commit is contained in:
Priti Kumari
2020-06-30 16:59:53 +05:30
committed by GitHub
parent 67da8a12c0
commit 79bba03138
3 changed files with 3 additions and 20 deletions

View File

@@ -1,10 +0,0 @@
# 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/multistage/check-oc.sh .
RUN ./check-oc.sh

View File

@@ -1,10 +0,0 @@
#!/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

View File

@@ -0,0 +1,3 @@
FROM src
COPY oc /usr/bin/oc