Code Monkey home page Code Monkey logo

ci-mesos's Introduction

ci-mesos

Jenkins Docker image

Open jenkins Dockerfile

  • Check FROM jenkins:weekly
  • Show Mesos native library setup
  • Check Jenkins configuration
    • Check master num executors=0
    • Plugin management with .csv file
    • Check mesos plugin presence

Show Marathon definition file

$curl -X POST -H "Content-Type: application/json" http://MARATHON_PUBLIC_HOST:8080/v2/apps [email protected]
  • Show application in Marathon interface
  • Show Jenkins logs on Mesos slave
$docker ps
$docker logs -f $(docker ps -lq)

Go to Jenkins through URL

Configure Mesos Cluster on Jenkins

  • Mesos native library path=/usr/lib/libmesos.so
  • Mesos Master [hostname:port]=MESOS_HOST:5050
  • Checkpointing=Yes

Show the new Framework on Mesos interface

Create a Slave Info for Java

  • Label String=java
  • Idle Termination Minutes=30
  • check Use Docker Containerizer
    • Docker Image=java:7

Create a new project with Java on Jenkins

  • Project type=Freestyle project
  • Project name=Projet Java
  • Restrict where this project can be run=java
  • Add build step
    • Execute shell
    • Command=java -version
  • Save Project and run it

Schedule a build

  • Check Build Queue
  • Check Build Executor Status
  • Check Console Output

Check Jenkins node

  • Check node on Jenkins
  • Check active tasks on Mesos Jenkins Scheduler framework
  • Check container on Mesos slave
$docker ps

Configure Maven

  • On Configure System add a new Maven installation
    • Name=maven
    • Check Install automatically
    • Install from Apache with version 3.2.2

Create a Slave Info for Maven

  • Label String=maven
  • Idle Termination Minutes=30
  • check Use Docker Containerizer
    • Docker Image=jlrigau/maven-git

Create a new Maven project on Jenkins

  • Project type=Maven project
  • Project name=Projet Maven
  • Restrict where this project can be run=maven
  • Configure Source Code Management
  • Configure Build
    • Root POM=sample/pom.xml
    • Goals and options=clean package
  • Save Project and run it

Connect to slave container

$docker exec -it CONTAINER_ID /bin/bash
  • Look at /jenkins/workspace/Projet Maven

ci-mesos's People

Contributors

seblm avatar

Watchers

James Cloos 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.