This repository has been archived by the owner on Sep 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from yntelectual/patch-1
add oc client
- Loading branch information
Showing
1 changed file
with
11 additions
and
1 deletion.
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 |
---|---|---|
@@ -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 |