-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (31 loc) · 1.34 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
# Version: 0.0.1
FROM jenkins/jenkins:lts
LABEL org.thenuclei.creator="Brian Provenzano" \
org.thenuclei.email="[email protected]"
USER root
RUN echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list
RUN echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
RUN apt-get update && apt-get install -y \
python3.6 \
python3-pip \
golang \
ansible \
jq \
&& rm -fr /var/lib/apt/lists/*
RUN sed -i '$ d' /etc/apt/sources.list
RUN pip3 install requests flask pytest pytest-runner awscli
ENV PATH="$PATH:/root/.local/bin"
# RUN echo $PATH
# RUN echo $PYTHON_BIN_PATH
RUN echo "America/Los_Angeles" | tee /etc/timezone
RUN dpkg-reconfigure --frontend noninteractive tzdata
ADD hashicorp-get /bin/hashicorp-get
RUN chmod +x /bin/hashicorp-get
RUN hashicorp-get terraform latest /bin/ -y -q && hashicorp-get packer latest /bin/ -y -q
COPY --chown=jenkins:jenkins basic-security.groovy /var/jenkins_home/init.groovy.d/basic-security.groovy
#COPY --chown=jenkins:jenkins jenkins.install.UpgradeWizard.state /var/jenkins_home/
RUN echo 2 > /var/jenkins_home/jenkins.install.UpgradeWizard.state
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
USER jenkins