-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
47 lines (33 loc) · 2.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM alpine:3.17.1
ENV KUBECTL_VERSION 1.23.15
ENV KUSTOMIZE_VERSION 4.1.3
ENV JSONNET_VERSION 0.17.0
ENV JSONNET_BUNDLER_VERSION 0.4.0
ENV KUBECFG_VERSION 0.20.0
ENV PLUTO_VERSION 4.2.0
ENV LINKERD_VERSION 2.13.2
ENV LINKERD_SMI_VERSION 0.2.0
ENV JQ_VERSION 1.6
ENV ARGO_CLI_VERSION 2.1.7
RUN apk add --no-cache curl
RUN curl -L https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 -o /usr/bin/jq \
&& chmod +x /usr/bin/jq
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /usr/bin/kubectl \
&& chmod +x /usr/bin/kubectl
RUN curl -sL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz | \
tar xz && mv kustomize /usr/bin/kustomize
RUN curl -sL https://github.com/google/jsonnet/releases/download/v${JSONNET_VERSION}/jsonnet-bin-v${JSONNET_VERSION}-linux.tar.gz | \
tar xz && mv jsonnet jsonnetfmt /usr/bin
RUN curl -sL https://github.com/FairwindsOps/pluto/releases/download/v${PLUTO_VERSION}/pluto_${PLUTO_VERSION}_linux_amd64.tar.gz | \
tar xz && mv pluto /usr/bin/pluto
RUN curl -L https://github.com/bitnami/kubecfg/releases/download/v${KUBECFG_VERSION}/kubecfg-linux-amd64 -o /usr/bin/kubecfg \
&& chmod +x /usr/bin/kubecfg
RUN curl -L https://github.com/linkerd/linkerd2/releases/download/stable-${LINKERD_VERSION}/linkerd2-cli-stable-${LINKERD_VERSION}-linux-amd64 -o /usr/bin/linkerd \
&& chmod +x /usr/bin/linkerd
RUN curl -L https://github.com/linkerd/linkerd-smi/releases/download/v${LINKERD_SMI_VERSION}/linkerd-smi-${LINKERD_SMI_VERSION}-linux-amd64 -o /usr/bin/linkerd-smi \
&& chmod +x /usr/bin/linkerd-smi
RUN curl -fSL -o "/usr/bin/jb" "https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v${JSONNET_BUNDLER_VERSION}/jb-linux-amd64" && chmod a+x "/usr/bin/jb"
RUN curl -sSL -o /usr/bin/argocd https://github.com/argoproj/argo-cd/releases/download/v${ARGO_CLI_VERSION}/argocd-linux-amd64 \
&& chmod +x /usr/bin/argocd
COPY ./entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]