forked from jenkinsci/kubernetes-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (20 loc) · 927 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
FROM jenkins/jenkins:lts-alpine
ARG VERSION=1.15.5
#RUN /usr/local/bin/install-plugins.sh kubernetes:${VERSION}
RUN jenkins-plugin-cli --plugins kubernetes-client-api \
kubernetes-credentials \
docker-commons \
cloudbees-folder \
workflow-api \
variant \
durable-task \
workflow-durable-task-step \
metrics \
caffeine-api
COPY target/kubernetes.hpi /usr/share/jenkins/ref/plugins/kubernetes.hpi
# RUN curl -o /usr/share/jenkins/ref/plugins/kubernetes.hpi \
# http://repo.jenkins-ci.org/snapshots/org/csanchez/jenkins/plugins/kubernetes/0.12/kubernetes-$VERSION.hpi
# remove executors in controller
COPY src/main/docker/master-executors.groovy /usr/share/jenkins/ref/init.groovy.d/
# ENV JAVA_OPTS="-Djava.util.logging.config.file=/var/jenkins_home/log.properties"
ENV JAVA_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm"