Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
5d0236ca
Commit
5d0236ca
authored
Jun 29, 2017
by
Michael Roytman
Committed by
GitHub
Jun 29, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3871 from edx/feanil/tools-jenkins-docker-capabilities
Install docker on tools jenkins.
parents
60e8d50d
8de45d7c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
3 deletions
+25
-3
docker/build/tools_jenkins/Dockerfile
+1
-1
playbooks/roles/tools_jenkins/defaults/main.yml
+2
-0
playbooks/roles/tools_jenkins/meta/main.yml
+9
-2
playbooks/roles/tools_jenkins/tasks/main.yml
+12
-0
playbooks/roles/tools_jenkins/templates/99-tools-jenkins.j2
+1
-0
No files found.
docker/build/tools_jenkins/Dockerfile
View file @
5d0236ca
FROM
edxops/
trusty
-common:latest
FROM
edxops/
xenial
-common:latest
MAINTAINER
edxops
USER
root
...
...
playbooks/roles/tools_jenkins/defaults/main.yml
View file @
5d0236ca
...
...
@@ -77,3 +77,5 @@ jenkins_tools_debian_pkgs:
-
python-pycurl
-
psmisc
-
mysql-client-core-5.6
JENKINS_TOOLS_DOCKER_USER
:
'
jenkins-docker-proxy'
playbooks/roles/tools_jenkins/meta/main.yml
View file @
5d0236ca
...
...
@@ -9,4 +9,12 @@ dependencies:
jenkins_deb_url
:
"
https://pkg.jenkins.io/debian-stable/binary/jenkins_{{
jenkins_version
}}_all.deb"
jenkins_custom_plugins
:
[]
jenkins_bundled_plugins
:
"
{{
jenkins_tools_bundled_plugins
}}"
jenkins_debian_pkgs
:
"
{{
jenkins_tools_debian_pkgs
}}"
\ No newline at end of file
jenkins_debian_pkgs
:
"
{{
jenkins_tools_debian_pkgs
}}"
# Needed to be able to build docker images. Used by Docker Image Builder Jobs.
-
role
:
user
user_info
:
-
name
:
'
{{
JENKINS_TOOLS_DOCKER_USER
}}'
-
role
:
docker-tools
docker_users
:
-
'
{{
JENKINS_TOOLS_DOCKER_USER
}}'
playbooks/roles/tools_jenkins/tasks/main.yml
View file @
5d0236ca
...
...
@@ -19,3 +19,15 @@
tags
:
-
install
-
install:system-requirements
-
name
:
Create sudoers file from template
template
:
dest
:
"
/etc/sudoers.d/99-tools_jenkins"
src
:
"
99-tools-jenkins.j2"
owner
:
"
root"
group
:
"
root"
mode
:
"
0440"
validate
:
'
visudo
-cf
%s'
tags
:
-
install
-
install:configuration
playbooks/roles/tools_jenkins/templates/99-tools-jenkins.j2
0 → 100644
View file @
5d0236ca
{{ jenkins_user }} ALL=({{ JENKINS_TOOLS_DOCKER_USER }}) SETENV:NOPASSWD:/usr/bin/docker
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment