forked from asynchrony/docker-jenkins-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (35 loc) · 1014 Bytes
/
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
FROM jenkins/jenkins:lts-alpine
USER root
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/main' >> /etc/apk/repositories \
&& echo 'http://dl-cdn.alpinelinux.org/alpine/v3.6/community' >> /etc/apk/repositories
RUN addgroup -g 497 docker \
&& apk update \
&& apk upgrade \
&& apk add --no-cache \
libressl-dev \
musl-dev \
libffi-dev \
python2-dev \
docker \
build-base \
py2-pip \
python \
shadow \
tzdata \
zip \
&& pip install --no-cache-dir \
awscli \
docker-compose \
&& usermod -a -G docker jenkins \
&& docker --version \
&& git --version \
&& aws --version \
&& git config --global user.email "[email protected]" \
&& git config --global user.name "Leroy Jenkins"
##Default Timezone - Can be overridden
ENV TZ=Europe/Stockholm
COPY run-jenkins.sh /usr/local/bin/run-jenkins.sh
COPY s3-sync.sh /usr/local/bin/s3-sync.sh
#USER jenkins
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/usr/local/bin/run-jenkins.sh"]