forked from alphagov/paas-docker-cloudfoundry-tools
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
108 lines (92 loc) · 5.26 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
FROM ruby:3.1-slim
# we use libc6 instead of libc6-compat as we do not use alpine base image
ENV PACKAGES "unzip curl openssl ca-certificates git libc6 bash jq gettext"
# we also use apt-get as we use an Ubuntu image, not an Alpine
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y --no-install-recommends ${PACKAGES} \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/local/bin
# renovate: datasource=github-releases depName=k14s/ytt
ENV YTT_VERSION "0.51.0"
ENV YTT_SUM f7ac37761607fefe06a4cc40840a3378a6e8365417d70d06f171cbc4d5469aca
ENV YTT_FILENAME ytt-linux-amd64
ADD https://github.com/k14s/ytt/releases/download/v${YTT_VERSION}/${YTT_FILENAME} .
RUN echo "Computed sha256sum: $(sha256sum ${YTT_FILENAME})" \
&& echo "${YTT_SUM} ${YTT_FILENAME}" | sha256sum -c - \
&& mv ${YTT_FILENAME} ytt
# renovate: datasource=github-releases depName=cloudfoundry/credhub-cli
ENV CREDHUB_CLI_VERSION 2.9.39
ENV CREDHUB_CLI_SUM 15cb96ea05a85020c83ef81d7a72f7da43a8671f8e60ed3f7ddc6660a0c83b2e
ENV CREDHUB_CLI_FILENAME credhub-linux-amd64-${CREDHUB_CLI_VERSION}.tgz
ADD https://github.com/cloudfoundry/credhub-cli/releases/download/${CREDHUB_CLI_VERSION}/${CREDHUB_CLI_FILENAME} .
RUN echo "Computed sha256sum: $(sha256sum ${CREDHUB_CLI_FILENAME})" \
&& echo "${CREDHUB_CLI_SUM} ${CREDHUB_CLI_FILENAME}" | sha256sum -c - \
&& tar zxvf ${CREDHUB_CLI_FILENAME}
# We need to synchronize this kustomize version with embedded fluxcd version and kubectl embedded version !
# renovate: datasource=github-releases depName=kubernetes-sigs/kustomize
ENV KUSTOMIZE_VERSION 5.0.3
ENV KUSTOMIZE_SUM c627b1575c3fecbc7ad1c181c23a7adcacf19732dab627eb57e89a7bc4c1e929
ENV KUSTOMIZE_FILENAME kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz
ADD https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_amd64.tar.gz .
RUN echo "Computed sha256sum: $(sha256sum ${KUSTOMIZE_FILENAME})" \
&& echo "${KUSTOMIZE_SUM} ${KUSTOMIZE_FILENAME}" | sha256sum -c - \
&& tar zxvf ${KUSTOMIZE_FILENAME}
# renovate: datasource=github-releases depName=k14s/kapp
ENV KAPP_VERSION 0.63.3
ENV KAPP_SUM 33702a40b6032ada742d73c59afeb393d0830a1913e3a599ca995eba3e68a57e
ENV KAPP_FILENAME kapp-linux-amd64
ADD https://github.com/k14s/kapp/releases/download/v${KAPP_VERSION}/kapp-linux-amd64 .
RUN echo "Computed sha256sum: $(sha256sum ${KAPP_FILENAME})" \
&& echo "${KAPP_SUM} ${KAPP_FILENAME}" | sha256sum -c - \
&& mv kapp-linux-amd64 kapp
# renovate: datasource=github-tags depName=kubernetes/kubectl
ENV KUBECTL_VERSION 1.28.15
ENV KUBECTL_SUM 1f7651ad0b50ef4561aa82e77f3ad06599b5e6b0b2a5fb6c4f474d95a77e41c5
ENV KUBECTL_FILENAME kubectl
ADD https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl .
#ADD https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl .
RUN echo "Computed sha256sum: $(sha256sum ${KUBECTL_FILENAME})" \
&& echo "${KUBECTL_SUM} ${KUBECTL_FILENAME}" | sha256sum -c -
# renovate: datasource=github-releases depName=helm/helm
ENV HELM_VERSION 3.14.4
ENV HELM_SUM a5844ef2c38ef6ddf3b5a8f7d91e7e0e8ebc39a38bb3fc8013d629c1ef29c259
ENV HELM_FILENAME helm-v${HELM_VERSION}-linux-amd64.tar.gz
ADD https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz .
RUN echo "Computed sha256sum: $(sha256sum ${HELM_FILENAME})" \
&& echo "${HELM_SUM} ${HELM_FILENAME}" | sha256sum -c - \
&& tar zxvf ${HELM_FILENAME} \
&& mv linux-amd64/helm helm \
&& rm -rf linux-amd64
# renovate: datasource=github-releases depName=kudobuilder/kuttl
ENV KUTTL_VERSION 0.19.0
ENV KUTTL_PLUGIN_SUM 376162ead2a1681505c3a449c3f02f3b2e6c8f604963c5a729cf7be532b1ae29
ENV KUTTL_PLUGIN_FILENAME kubectl-kuttl_${KUTTL_VERSION}_linux_x86_64
ADD https://github.com/kudobuilder/kuttl/releases/download/v${KUTTL_VERSION}/${KUTTL_PLUGIN_FILENAME} .
RUN echo "Computed ${KUTTL_PLUGIN_FILENAME} sha256sum: $(sha256sum ${KUTTL_PLUGIN_FILENAME})" \
&& echo "${KUTTL_PLUGIN_SUM} ${KUTTL_PLUGIN_FILENAME}" | sha256sum -c - \
&& mv ${KUTTL_PLUGIN_FILENAME} kubectl-kuttl \
&& ln -s kubectl-kuttl kuttl
# renovate: datasource=github-releases depName=mikefarah/yq
ENV YQ_VERSION 4.44.5
ENV YQ_SUM 638c4b251c49201fc94b598834b715f8f1c6e9b1854d2820772d2c79f0289002
ENV YQ_FILENAME yq_linux_amd64
ADD https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/${YQ_FILENAME} .
RUN echo "Computed ${YQ_FILENAME} sha256sum: $(sha256sum ${YQ_FILENAME})" \
&& echo "${YQ_SUM} ${YQ_FILENAME}" | sha256sum -c - \
&& chmod +x ${YQ_FILENAME} \
&& mv ${YQ_FILENAME} /usr/local/bin/yq
# renovate: datasource=github-releases depName=cloudfoundry/bosh-cli
ENV BOSH_CLI_VERSION 7.7.1
ENV BOSH_CLI_SUM ec3b3c08ceed19c812bd048d3c22831e0a50983a27bd334498b361c7d604246d
ENV BOSH_CLI_FILENAME bosh-cli-${BOSH_CLI_VERSION}-linux-amd64
ADD https://github.com/cloudfoundry/bosh-cli/releases/download/v${BOSH_CLI_VERSION}/${BOSH_CLI_FILENAME} .
RUN echo "Computed ${BOSH_CLI_FILENAME} sha256sum: $(sha256sum ${BOSH_CLI_FILENAME})" \
&& echo "${BOSH_CLI_SUM} ${BOSH_CLI_FILENAME}" | sha256sum -c - \
&& chmod +x ${BOSH_CLI_FILENAME} \
&& mv ${BOSH_CLI_FILENAME} /usr/local/bin/bosh
WORKDIR /usr/local/bin
RUN rm *.tgz && rm *.gz && chown root:root * && chmod a+x *
RUN ls -l
WORKDIR /
#ENTRYPOINT /bin/bash