Add istioctl.
Showing
1 changed file
with
10 additions
and
0 deletions
... | @@ -23,6 +23,10 @@ ARG KUSTOMIZE_VERSION=3.8.10 | ... | @@ -23,6 +23,10 @@ ARG KUSTOMIZE_VERSION=3.8.10 |
23 | #ARG KUSTOMIZE_VERSION=5.5.0 | 23 | #ARG KUSTOMIZE_VERSION=5.5.0 |
24 | ADD https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz /srv/kustomize_linux_amd64.tar.gz | 24 | ADD https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz /srv/kustomize_linux_amd64.tar.gz |
25 | 25 | ||
26 | FROM scratch AS istioctl-remote | ||
27 | ARG ISTIOCTL_VERSION=1.15.0 | ||
28 | ADD https://github.com/istio/istio/releases/download/${ISTIOCTL_VERSION}/istio-${ISTIOCTL_VERSION}-linux-amd64.tar.gz /srv/istioctl-linux-amd64.tar.gz | ||
29 | |||
26 | FROM scratch AS skopeo-remote | 30 | FROM scratch AS skopeo-remote |
27 | ARG SKOPEO_VERSION=1.15.0 | 31 | ARG SKOPEO_VERSION=1.15.0 |
28 | ADD https://github.com/containers/skopeo/archive/refs/tags/v${SKOPEO_VERSION}.tar.gz /srv/skopeo.tar.gz | 32 | ADD https://github.com/containers/skopeo/archive/refs/tags/v${SKOPEO_VERSION}.tar.gz /srv/skopeo.tar.gz |
... | @@ -67,6 +71,7 @@ COPY --from=helm-git-remote /srv/helm-git.tar.gz /srv/helm-git.tar.gz | ... | @@ -67,6 +71,7 @@ COPY --from=helm-git-remote /srv/helm-git.tar.gz /srv/helm-git.tar.gz |
67 | COPY --from=helmfile-remote /srv/helmfile_linux_amd64.tar.gz /srv/helmfile_linux_amd64.tar.gz | 71 | COPY --from=helmfile-remote /srv/helmfile_linux_amd64.tar.gz /srv/helmfile_linux_amd64.tar.gz |
68 | COPY --from=kubectl-remote /srv/kubectl /usr/local/bin/kubectl | 72 | COPY --from=kubectl-remote /srv/kubectl /usr/local/bin/kubectl |
69 | COPY --from=kustomize-remote /srv/kustomize_linux_amd64.tar.gz /srv/kustomize_linux_amd64.tar.gz | 73 | COPY --from=kustomize-remote /srv/kustomize_linux_amd64.tar.gz /srv/kustomize_linux_amd64.tar.gz |
74 | COPY --from=istioctl-remote /srv/istioctl-linux-amd64.tar.gz /srv/istioctl-linux-amd64.tar.gz | ||
70 | 75 | ||
71 | # requires: libgpgme11 libsubid4 libdevmapper1.02.1 | 76 | # requires: libgpgme11 libsubid4 libdevmapper1.02.1 |
72 | COPY --from=skopeo-compiled /usr/local/bin/skopeo /usr/local/bin/skopeo | 77 | COPY --from=skopeo-compiled /usr/local/bin/skopeo /usr/local/bin/skopeo |
... | @@ -84,6 +89,10 @@ RUN true && set -x && \ | ... | @@ -84,6 +89,10 @@ RUN true && set -x && \ |
84 | mv helmfile /usr/local/bin/helmfile && \ | 89 | mv helmfile /usr/local/bin/helmfile && \ |
85 | cd .. && rm -rf install && \ | 90 | cd .. && rm -rf install && \ |
86 | mkdir install && cd install && \ | 91 | mkdir install && cd install && \ |
92 | tar -zxvf /srv/istioctl-linux-amd64.tar.gz && \ | ||
93 | ls istio-*/bin/ && \ | ||
94 | mv istio-*/bin/istioctl /usr/local/bin/istioctl && \ | ||
95 | cd .. && rm -rf install && \ | ||
87 | tar -zxvf /srv/kustomize_linux_amd64.tar.gz && \ | 96 | tar -zxvf /srv/kustomize_linux_amd64.tar.gz && \ |
88 | mv kustomize /usr/local/bin/kustomize && \ | 97 | mv kustomize /usr/local/bin/kustomize && \ |
89 | cd .. && rm -rf install && \ | 98 | cd .. && rm -rf install && \ |
... | @@ -98,6 +107,7 @@ RUN true && set -x && \ | ... | @@ -98,6 +107,7 @@ RUN true && set -x && \ |
98 | tar -C $HELM_PLUGINS -xf /srv/helm-git.tar.gz && \ | 107 | tar -C $HELM_PLUGINS -xf /srv/helm-git.tar.gz && \ |
99 | helm version && helm plugin list && \ | 108 | helm version && helm plugin list && \ |
100 | helmfile version && \ | 109 | helmfile version && \ |
110 | istioctl version --remote=false && \ | ||
101 | skopeo -v && \ | 111 | skopeo -v && \ |
102 | mkdir -p .config/kustomize/plugin && \ | 112 | mkdir -p .config/kustomize/plugin && \ |
103 | mkdir .ssh && chmod 700 .ssh && \ | 113 | mkdir .ssh && chmod 700 .ssh && \ | ... | ... |
-
Please register or sign in to post a comment