Code Monkey home page Code Monkey logo

jenkins-on-mesos's Introduction

jenkins-on-mesos

Jenkins standalone instance package with the Mesos plugin pre-installed. Besides jenkins slave auto scaling, marathon is supporting high availability with plugin scm-sync-configuration.

###How to use it quickly

  1. Wget the start script template start-jenkins.app.sh.template and marathon.json
$wget https://raw.githubusercontent.com/Dataman-Cloud/jenkins-on-mesos/master/start-jenkins.app.sh.template
$wget https://raw.githubusercontent.com/Dataman-Cloud/jenkins-on-mesos/master/marathon.json
  1. Create a git repo on your private repo server or github to persist jenkins' data

We have to create a git repo named jenkins-on-mesos, such as [email protected]:core/jenkins-on-mesos.git, to persist jenkins master data, which is needed by plugin SCM Sync configuration plugin. BTW, make sure there is one user on mesos-slave can pull/push the repo.

  1. Edit to get your start script
$cp start-jenkins.app.sh.template start-jenkins.app.sh
$vim start-jenkins.app.sh

we need to edit 3 var in the file start-jenkins.app.sh:

  1. SCM_SYNC_GIT: The above git repo addr, here is my example [email protected]:core/jenkins-on-mesos.git

  2. APP_USER: will deploy jenkins on marathon as user APP_USER, who must have been granted to pull/push repo SCM_SYNC_GIT since jenkins will sync the configure with git repo SCM_SYNC_GIT.

  3. MARATHON_PORTAL: Marathon PORTAL, for example: http://marathon.dataman.io:8080/v2/apps

  4. Run the start script to deploy a new jenkins master on marathon

bash start-jenkins.app.sh
  1. Register jenkins master as mesos framework

We need visit jenkins-master configure page to edit section Mesos Cloud, set the Mesos Master [hostname:port] as your mesos entry. more config detail

###Features

  1. auto scaling jenkins slave nodes
  2. deployed over marathon for high availability
  3. pre-installed plugin scm-sync-configuration for data persistence

jenkins-on-mesos's People

Contributors

abhay-agarwal avatar vitan avatar ahunnargikar avatar

Watchers

James Cloos avatar satchel avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.