Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1 from yntelectual/patch-1
Browse files Browse the repository at this point in the history
add oc client
  • Loading branch information
andrejpetras authored Oct 30, 2019
2 parents afb2c11 + 248c58f commit 120fff5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
FROM maven:3.6.0-jdk-8 as build

ENV OC_VERSION=v3.11.0 \
OC_TAG_SHA=0cbc58b

RUN curl "https://get.helm.sh/helm-v2.14.3-linux-amd64.tar.gz" -o "helm.tar.gz" \
&& tar xzvf helm.tar.gz \
&& curl -sLo /tmp/oc.tar.gz https://github.com/openshift/origin/releases/download/${OC_VERSION}/openshift-origin-client-tools-${OC_VERSION}-${OC_TAG_SHA}-linux-64bit.tar.gz \
&& tar xzvf /tmp/oc.tar.gz -C /tmp/ \
&& mv /tmp/openshift-origin-client-tools-${OC_VERSION}-${OC_TAG_SHA}-linux-64bit/oc /tmp/ \
&& rm -rf /tmp/oc.tar.gz /tmp/openshift-origin-client-tools-${OC_VERSION}-${OC_TAG_SHA}-linux-64bit \
&& ls -all .



COPY .m2 /root/.m2

FROM maven:3.6.0-jdk-8

COPY --from=build /tmp/oc /usr/local/bin/
COPY --from=build linux-amd64 /usr/local/bin
COPY --from=build /root/.m2 /root/.m2
COPY --from=build /root/.m2 /root/.m2

0 comments on commit 120fff5

Please sign in to comment.