forked from jenkins-x/builder-base
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.php
86 lines (66 loc) · 3 KB
/
Dockerfile.php
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
FROM php:7.2.5
RUN apt-get update && apt-get install -y \
wget \
python-pip
RUN pip install --upgrade pip anchorecli
# java required for updatebot
RUN apt-get update && apt-get install -y openjdk-8-jre
# chrome
RUN apt-get install -y libappindicator1 fonts-liberation libasound2 libnspr4 libnss3 libxss1 lsb-release xdg-utils libappindicator3-1 && \
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
dpkg -i google-chrome*.deb && \
rm google-chrome*.deb
# 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.8.2
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
# 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
# jx-release-version
ENV JX_RELEASE_VERSION 1.0.9
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.4.0
# RUN curl -f -Lo skaffold https://github.com/GoogleCloudPlatform/skaffold/releases/download/v${SKAFFOLD_VERSION}/skaffold-linux-amd64 && \
# TODO use temp fix distro
RUN curl -f -Lo skaffold https://github.com/jstrachan/skaffold/releases/download/v0.5.0.1-jx2/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 -L https://github.com/jenkins-x/jx/releases/download/v${JX_VERSION}/jx-linux-amd64.tar.gz | tar xzv && \
mv jx /usr/bin/
ENV PATH ${PATH}:/opt/google/chrome
CMD ["helm","version"]