This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
forked from saily/openshift-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Dockerfile): install kubectl and istioctl
- Loading branch information
Constantine Karnaukhov
committed
Sep 19, 2018
1 parent
c42fd8e
commit 898e07c
Showing
4 changed files
with
143 additions
and
60 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,15 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = tab | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[**.{js,ts,jsx,tsx,less,css,sass,scss,json,yml,yaml}] | ||
indent_size = 2 | ||
indent_style = space |
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,39 @@ | ||
# Numerous always-ignore extensions | ||
*.diff | ||
*.err | ||
*.orig | ||
*.log* | ||
*.rej | ||
*.swo | ||
*.swp | ||
*.zip | ||
*.vi | ||
*~ | ||
*.lock | ||
!**/yarn.lock | ||
!**/composer.lock | ||
|
||
# Dotenv | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# OS or Editor folders | ||
.DS_Store | ||
._* | ||
Thumbs.db | ||
.cache | ||
.project | ||
.settings | ||
.tmproj | ||
*.esproj | ||
nbproject | ||
*.sublime-project | ||
*.sublime-workspace | ||
.idea | ||
*.komodoproject | ||
.komodotools | ||
.atom | ||
.vscode | ||
.directory | ||
.sql |
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,17 +1,38 @@ | ||
FROM frolvlad/alpine-glibc:latest | ||
|
||
MAINTAINER Daniel Widerin <[email protected]> | ||
LABEL maintainer="Constantine Karnaukhov <[email protected]>" | ||
|
||
# Install dependencies | ||
ENV BUILD_DEPS='tar gzip' \ | ||
RUN_DEPS='curl ca-certificates gettext' | ||
|
||
RUN apk --no-cache add $BUILD_DEPS $RUN_DEPS | ||
|
||
# Install kubectl | ||
ENV KUBECTL_VERSION=v1.11.3 | ||
|
||
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \ | ||
chmod +x ./kubectl && \ | ||
mv ./kubectl /usr/local/bin/ | ||
|
||
# Install OpenShift CLI | ||
ENV OC_VERSION=v3.10.0 \ | ||
OC_TAG_SHA=dd10d17 \ | ||
BUILD_DEPS='tar gzip' \ | ||
RUN_DEPS='curl ca-certificates gettext' | ||
|
||
RUN apk --no-cache add $BUILD_DEPS $RUN_DEPS && \ | ||
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 /usr/local/bin/ && \ | ||
rm -rf /tmp/oc.tar.gz /tmp/openshift-origin-client-tools-${OC_VERSION}-${OC_TAG_SHA}-linux-64bit && \ | ||
apk del $BUILD_DEPS | ||
|
||
CMD ["/usr/local/bin/oc"] | ||
OC_TAG_SHA=dd10d17 | ||
|
||
RUN 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 /usr/local/bin/ && \ | ||
rm -rf /tmp/oc.tar.gz /tmp/openshift-origin-client-tools-${OC_VERSION}-${OC_TAG_SHA}-linux-64bit | ||
|
||
# Install istioctl | ||
ENV ISTIO_VERSION=1.0.2 | ||
|
||
RUN curl -sLo /tmp/istio.tar.gz https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istio-${ISTIO_VERSION}-linux.tar.gz && \ | ||
tar xzvf /tmp/istio.tar.gz -C /tmp/ && \ | ||
mv /tmp/istio-${ISTIO_VERSION}/bin/istioctl /usr/local/bin/ && \ | ||
rm -rf /tmp/istio.tar.gz /tmp/istio-${ISTIO_VERSION} | ||
|
||
# Clean cache | ||
RUN apk del $BUILD_DEPS | ||
|
||
CMD ["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