-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
38 lines (32 loc) · 1.1 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
FROM quay.io/deis/base:v0.3.6
ENV CLUSTER_DURATION=1600 \
KUBECONFIG=/home/jenkins/kubeconfig.yaml \
GINKGO_NODES=30 \
HELMC_HOME=/home/jenkins/.helmc \
K8S_VERSION=1.5.1
RUN addgroup --gid 999 jenkins && \
adduser --system \
--shell /bin/bash \
--disabled-password \
--home /app \
--gid 999 \
--uid 999 \
jenkins
COPY scripts/ /home/jenkins/
RUN apt-get update -y && \
apt-get install -y \
git \
unzip && \
curl -Ls -o /usr/bin/k8s-claimer https://k8sclaimercli.blob.core.windows.net/cli/git-4be346d/k8s-claimer-git-4be346d-linux-amd64 && \
chmod +x /usr/bin/k8s-claimer && \
curl -Ls -o /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v$K8S_VERSION/bin/linux/amd64/kubectl && \
chmod +x /usr/bin/kubectl && \
curl -Ls -o /usr/bin/jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 && \
chmod +x /usr/bin/jq && \
mkdir -p /home/jenkins/logs && \
chown -R jenkins:jenkins /home/jenkins/ && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/man /usr/share/doc
USER jenkins
WORKDIR /home/jenkins
CMD ["./run.sh"]