This folder includes a Docker file and a Marathon app definition which can be used to run Jenkins with this plugin on DC/OS. It should only be used for testing. Please use the DC/OS universe Jenkins package for production.
The Dockerfile
defines a Docker image that supports DC/OS strict mode. It should be publishes as
mesosphere/jenkins:unstalbe
. It requires a service account to run. To setup one up with the DC/OS CLI
- Create service account secrets with
dcos security org service-accounts keypair jenkins.private.pem jenkins.pub.pem
- Create the actual service account called
jenkins
dcos security org service-accounts create -p jenkins.pub.pem -d "Jenkins Service Account" jenkins
- Store private key as secret so that the Jenkins controller can access it
dcos security secrets create -f ./jenkins.private.pem jenkins/private_key
- Grant
jenkins
service account rights to start Mesos tasks:dcos security org users grant jenkins dcos:mesos:master:task:user:nobody create dcos security org users grant jenkins "dcos:mesos:master:framework:role:*" read dcos security org users grant jenkins "dcos:mesos:master:framework:role:*" create
- Deploy the Jenkins app defined in
./jenkins-app.json
dcos marathon app add jenkins-app.json