Unverified Commit a34aa3fa by Troy Sankey Committed by GitHub

Merge pull request #4444 from edx/pwnage101/build_jenkins_dockerfile

build jenkins dockerfile
parents b6c1cf64 06366692
FROM edxops/xenial-common:latest
MAINTAINER edxops
USER root
RUN apt-get update
ADD . /edx/app/edx_ansible/edx_ansible
WORKDIR /edx/app/edx_ansible/edx_ansible/docker/plays
COPY docker/build/tools_jenkins/ansible_overrides.yml /
RUN PYTHONUNBUFFERED=1 /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook -v jenkins_build.yml -i '127.0.0.1,' -c local -e@/ansible_overrides.yml -vv -t 'install'
CMD /bin/su -l jenkins --shell=/bin/bash -c "/usr/bin/daemon -f --name=jenkins --inherit --env=JENKINS_HOME=/edx/var/jenkins --output=/var/log/jenkins/jenkins.log --pidfile=/var/run/jenkins/jenkins.pid -- /usr/bin/java -jar /usr/share/jenkins/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080 --ajp13Port=-1"
- name: Deploy the build jenkins
hosts: all
become: True
gather_facts: True
vars:
serial_count: 1
serial: "{{ serial_count }}"
roles:
- common_vars
- docker
- jenkins_build
......@@ -11,7 +11,6 @@ dependencies:
nginx_server_static_dir: "{{ nginx_data_dir }}/server-static"
nginx_htpasswd_file: "{{ nginx_app_dir }}/nginx.htpasswd"
nginx_default_sites: "jenkins"
nginx_template_dir: "etc/nginx/sites-available"
nginx_sites: jenkins
jenkins_nginx_port: "{{ jenkins_common_nginx_port }}"
jenkins_server_name: "{{ JENKINS_SERVER_NAME }}"
......
......@@ -50,6 +50,16 @@
- install
- install:system-requirements
- name: Create /var/run/jenkins
file:
path: "/var/run/jenkins"
state: directory
owner: "{{ jenkins_common_user }}"
group: "{{ jenkins_common_group }}"
tags:
- install
- install:system-requirements
- name: Delete any existing jenkins-configuration folders to avoid unwanted configuration
file:
path: '{{ item }}'
......
......@@ -31,3 +31,4 @@ weights:
- notifier: 2
- mongo: 1
- devpi: 1
- jenkins_build: 8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment