Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.43 KB

README.md

File metadata and controls

34 lines (29 loc) · 1.43 KB

Running on DC/OS

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.

Testing On DC/OS Enterprise

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

  1. Create service account secrets with
    dcos security org service-accounts keypair jenkins.private.pem jenkins.pub.pem
    
  2. Create the actual service account called jenkins
    dcos security org service-accounts create -p jenkins.pub.pem -d "Jenkins Service Account" jenkins 
    
  3. Store private key as secret so that the Jenkins controller can access it
    dcos security secrets create -f ./jenkins.private.pem jenkins/private_key
    
  4. 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
    
  5. Deploy the Jenkins app defined in ./jenkins-app.json
    dcos marathon app add jenkins-app.json