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.

28 lines
651 B

3 years ago
  1. FROM jenkins/jenkins:lts-jdk11 as jenkins
  2. LABEL maintainer="Mohammad Akbari"
  3. WORKDIR /
  4. ENV TZ="Asia/Tehran"
  5. ENV JAVA_OPTS -Djenkins.install.runSetupWizard=true
  6. # ENV CASC_JENKINS_CONFIG /var/jenkins_home/casc.yaml
  7. USER root
  8. RUN apt update \
  9. && apt full-upgrade -y \
  10. && apt install sshpass -y \
  11. && apt install ansible -y \
  12. && apt install git -y \
  13. && apt install nano -y
  14. RUN ssh-keygen -t rsa -f /root/.ssh/ansible -P password
  15. COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
  16. RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt
  17. # COPY casc.yaml /var/jenkins_home/casc.yaml
  18. EXPOSE 8080
  19. EXPOSE 50000