forked from jenkins-x/builder-base
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.slim
37 lines (29 loc) · 1.42 KB
/
Dockerfile.slim
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
FROM centos:7
# helm
ENV HELM_VERSION 2.9.1
RUN curl -f https://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}-linux-amd64.tar.gz | tar xzv && \
mv linux-amd64/helm /usr/bin/ && \
rm -rf linux-amd64
# helm3
# RUN curl -L https://storage.googleapis.com/kubernetes-helm/helm-dev-v3-linux-amd64.tar.gz | tar xzv && \
# mv linux-amd64/helm /usr/bin/helm3 && \
# rm -rf linux-amd64
# lets use a patched release until this PR is merged or helm3 works again ;)
# https://github.com/kubernetes/helm/pull/4257#issuecomment-399491118
RUN curl -f -L https://github.com/jstrachan/helm/releases/download/untagged-93375777c6644a452a64/helm-linux-amd64.tar.gz -o helm3.tgz && \
tar xf helm3.tgz && \
mv helm /usr/bin/helm3
# jx-release-version
ENV JX_RELEASE_VERSION 1.0.10
RUN curl -f -o ./jx-release-version -L https://github.com/jenkins-x/jx-release-version/releases/download/v${JX_RELEASE_VERSION}/jx-release-version-linux && \
mv jx-release-version /usr/bin/ && \
chmod +x /usr/bin/jx-release-version
# kubectl
RUN curl -f -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \
chmod +x kubectl && \
mv kubectl /usr/bin/
# jx
ENV JX_VERSION 1.3.399
RUN curl -f -L https://github.com/jenkins-x/jx/releases/download/v${JX_VERSION}/jx-linux-amd64.tar.gz | tar xzv && \
mv jx /usr/bin/
CMD ["helm","version"]