This repository has been archived by the owner on Nov 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile.common
100 lines (81 loc) · 4.02 KB
/
Dockerfile.common
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
# USER jenkins
WORKDIR /home/jenkins
# Docker
ENV DOCKER_VERSION 17.12.0
RUN curl -f https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION-ce.tgz | tar xvz && \
mv docker/docker /usr/bin/ && \
rm -rf docker
# helm
ENV HELM_VERSION 2.11.0
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/ && \
mv linux-amd64/tiller /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
# gcloud
ENV GCLOUD_VERSION 187.0.0
RUN curl -f -L https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GCLOUD_VERSION}-linux-x86_64.tar.gz | tar xzv && \
mv google-cloud-sdk /usr/bin/
ENV PATH=$PATH:/usr/bin/google-cloud-sdk/bin
# install the docker credential plugin
RUN gcloud components install docker-credential-gcr
# 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
# exposecontroller
ENV EXPOSECONTROLLER_VERSION 2.3.34
RUN curl -f -L https://github.com/fabric8io/exposecontroller/releases/download/v$EXPOSECONTROLLER_VERSION/exposecontroller-linux-amd64 > exposecontroller && \
chmod +x exposecontroller && \
mv exposecontroller /usr/bin/
# skaffold
ENV SKAFFOLD_VERSION 0.11.0
RUN curl -f -Lo skaffold https://github.com/GoogleCloudPlatform/skaffold/releases/download/v${SKAFFOLD_VERSION}/skaffold-linux-amd64 && \
chmod +x skaffold && \
mv skaffold /usr/bin
# updatebot
ENV UPDATEBOT_VERSION 1.1.27
RUN curl -f -o ./updatebot -L https://oss.sonatype.org/content/groups/public/io/jenkins/updatebot/updatebot/${UPDATEBOT_VERSION}/updatebot-${UPDATEBOT_VERSION}.jar && \
chmod +x updatebot && \
cp updatebot /usr/bin/ && \
rm -rf updatebot
# draft
RUN curl -f https://azuredraft.blob.core.windows.net/draft/draft-canary-linux-amd64.tar.gz | tar xzv && \
mv linux-amd64/draft /usr/bin/ && \
rm -rf linux-amd64
# 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/
# aws ecr docker credential helper.
# Currently using https://github.com/estahn/amazon-ecr-credential-helper as there are no releases yet in the main repo
# Main repo issues tracking at https://github.com/awslabs/amazon-ecr-credential-helper/issues/80
RUN mkdir ecr && \
curl -f -L https://github.com/estahn/amazon-ecr-credential-helper/releases/download/v0.1.1/amazon-ecr-credential-helper_0.1.1_linux_amd64.tar.gz | tar -xzv -C ./ecr/ && \
mv ecr/docker-credential-ecr-login /usr/bin/ && \
rm -rf ecr
# ACR docker credential helper
#??https://github.com/Azure/acr-docker-credential-helper
RUN mkdir acr && \
curl -f -L https://aadacr.blob.core.windows.net/acr-docker-credential-helper/docker-credential-acr-linux-amd64.tar.gz | tar -xzv -C ./acr/ && \
mv acr/docker-credential-acr-linux /usr/bin/ && \
rm -rf acr
# reflex
ENV REFLEX_VERSION 0.3.1
RUN curl -f -L https://github.com/ccojocar/reflex/releases/download/v${REFLEX_VERSION}/reflex_${REFLEX_VERSION}_linux_amd64.tar.gz | tar xzv && \
mv reflex /usr/bin/
ENV PATH ${PATH}:/opt/google/chrome
CMD ["helm","version"]