Public | Automated Build

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

Jenkins-on-Mesos

Last integration test:

Default Mesos-Plugin Env. (see Dockerfile and config.xml):

JENKINS_HOME "/var/lib/jenkins"
JENKINS_LOGFILE "/mnt/mesos/sandbox/jenkins.log"
JENKINS_MESOS_NAME "MesosCloud"
JENKINS_MESOS_MASTER "zk://leader.mesos:2181/mesos"
JENKINS_MESOS_DESCRIPTION "Jenkins Schedule"
JENKINS_MESOS_FRAMEWORKNAME "Mesos"
JENKINS_MESOS_SLAVEUSER "root"
JENKINS_MESOS_PRINCIPAL ""
JENKINS_MESOS_SECRET ""
JENKINS_MESOS_ONDEMANDREGISTRATION "false"
JENKINS_MESOS_JENKINSURL "http://jenkins.marathon.mesos:31205"
JENKINS_MESOS_SLAVE_LABEL "mesos"

Marathon Example:

curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" \
  leader.mesos:8080/v2/apps -d '{
    "id": "jenkins",
    "container": {
        "type": "DOCKER",
        "docker": {
            "image": "jstabenow/jenkins-mesos:latest"
        },
        "volumes": []
    },
    "cpus": 1,
    "mem": 2048,
    "instances": 1,
    "ports": [
        31205
    ],
    "healthChecks": [
        {
            "path": "/",
            "portIndex": 0,
            "protocol": "HTTP",
            "gracePeriodSeconds": 30,
            "intervalSeconds": 30,
            "timeoutSeconds": 30,
            "maxConsecutiveFailures": 3
        }
    ],
    "upgradeStrategy": {
        "minimumHealthCapacity": 0
    }
}`

Docker-Run Example:

docker run -it -p 31205:31205 jstabenow/jenkins-master:latest

UI-Access:

"jenkins.marathon.mesos:31205" or "agent-hostname:31205"

Add your first job:

Init persistent data:

If you want to move the installed Mesos-Plugin into a new Path/Store:

Init the App with:

{
    "container": {
        "type": "DOCKER",
        "docker": {
            "image": "jstabenow/jenkins-mesos:latest"
        },
        "volumes": [
            {
                "containerPath": "/mnt/jenkins",
                "hostPath": "/mnt/jenkins",
                "mode": "RW"
            }
        ]
    },
    "env": {
        "JENKINS_HOME_NEW": "/mnt/jenkins",
        "RUN": "MOVE"
    }
}

And then PUT:

{
    "container": {
        "type": "DOCKER",
        "docker": {
            "image": "jstabenow/jenkins-mesos:latest"
        },
        "volumes": [
            {
                "containerPath": "/var/lib/jenkins",
                "hostPath": "/mnt/jenkins",
                "mode": "RW"
            }
        ]
    },
    "env": {
        "RUN": ""
    }
}

Finished.

Docker Pull Command
Owner
jstabenow
Source Repository

Comments (0)