You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
651 B

FROM jenkins/jenkins:lts-jdk11 as jenkins
LABEL maintainer="Mohammad Akbari"
WORKDIR /
ENV TZ="Asia/Tehran"
ENV JAVA_OPTS -Djenkins.install.runSetupWizard=true
# ENV CASC_JENKINS_CONFIG /var/jenkins_home/casc.yaml
USER root
RUN apt update \
&& apt full-upgrade -y \
&& apt install sshpass -y \
&& apt install ansible -y \
&& apt install git -y \
&& apt install nano -y
RUN ssh-keygen -t rsa -f /root/.ssh/ansible -P password
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
# COPY casc.yaml /var/jenkins_home/casc.yaml
EXPOSE 8080
EXPOSE 50000