-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (36 loc) · 1.15 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
39
40
41
42
43
44
FROM jenkins/jenkins:lts
# Found in Orka IP Plan
ARG ORKA_LICENSE
ARG FIREWALL_IP
ARG FIREWALL_USER
ARG FIREWALL_PASS
ENV JAVA_OPTS -Djenkins.install.runSetupWizard=false
ENV JENKINS_USER admin
ENV JENKINS_PASS admin
ENV ORKA_USER [email protected]
ENV ORKA_PASS automated-jenkins
ENV ORKA_LICENSE=$ORKA_LICENSE
ENV FIREWALL_IP=$FIREWALL_IP
ENV FIREWALL_USER=$FIREWALL_USER
ENV FIREWALL_PASS=$FIREWALL_PASS
USER root
RUN apt-get update
RUN apt-get install -y \
curl \
git \
openconnect \
python3 \
python3-pip
RUN rm -rf /var/lib/apt/lists/*
RUN pip3 install \
fabric \
requests
COPY configure_cluster.py /usr/share/orka/configure_cluster.py
COPY connect.sh /usr/share/orka/connect.sh
COPY configure.sh /usr/share/orka/configure.sh
RUN chmod +x /usr/share/orka/connect.sh
RUN chmod +x /usr/share/orka/configure.sh
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
COPY init-pipeline.groovy /usr/share/jenkins/ref/init.groovy.d/init-pipeline.groovy
COPY init-cloud.groovy /usr/share/jenkins/ref/init.groovy.d/init-cloud.groovy