forked from vfarcic/docker-jenkins-slave-dind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (24 loc) · 999 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
FROM docker:18.02
ARG version="0.2.0"
ARG build_date="unknown"
ARG commit_hash="unknown"
ARG vcs_url="unknown"
ARG vcs_branch="unknown"
LABEL maintainer="Viktor Farcic <[email protected]>"\
org.label-schema.vendor="vfarcic" \
org.label-schema.name="jenkins-swarm-agent" \
org.label-schema.description="Jenkins agent based on the Swarm plugin" \
org.label-schema.usage="/src/README.md" \
org.label-schema.url="https://github.com/vfarcic/docker-jenkins-slave-dind/blob/master/README.md" \
org.label-schema.vcs-url=$vcs_url \
org.label-schema.vcs-branch=$vcs_branch \
org.label-schema.vcs-ref=$commit_hash \
org.label-schema.version=$version \
org.label-schema.schema-version="1.0" \
org.label-schema.build-date=$build_date
RUN adduser -G root -D jenkins && \
apk --update --no-cache add openjdk8-jre python py-pip git openssh ca-certificates openssl && \
pip install docker-compose
COPY run.sh /run.sh
RUN chmod +x /run.sh
CMD ["/run.sh"]