Public | Automated Build

Last pushed: a year ago
Short Description
Jenkins DSL image with Node JS installed.
Full Description

PluggedInDevOps

Repo for June 23, 2016 Plugged In Event

##DOCKERFILE
Docker file is build from the Jenkins base image intended as an example of Jenkins with a seed job that create jobs from dsl files.

Prerequisites

Mac OS

  • Install homebrew
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  • Install VirtualBox
    brew cask install virtualbox
    
  • Install Docker
    brew cask install dockertoolbox
    
  • Navigate to LaunchPad and start Docker Quickstart Terminal
    • If starting Quickstart Terminal fails, run the following:
      docker-machine create --driver virtualbox default
      docker-machine env default
      eval "$(docker-machine env default)"
      
  • Load and start Jenkins container process as a daemon

    docker pull blilley/pluggedindevops-jenkins-dsl-nodejs
    docker run -d -p 8080:8080 -e SEEDREPO=<URL to your repo that builds your jobs> blilley/pluggedindevops-jenkins-dsl-nodejs
    

    e.g. docker run -d -p 8080:8080 -e SEEDREPO=https://github.com/PillarTechnology/PluggedInDevOpsDsls.git blilley/pluggedindevops-jenkins-dsl-nodejs

  • Get the IP address of the vm started by Docker Quickstart Terminal (default is the name)

    docker-machine ip default
    
  • Open a browser on your base machine and navigate to the Jenkins instance running in the Container using http://[ip address]:8080

  • install Graphite Graphana Container for gathering application metrics (https://hub.docker.com/r/choopooly/grafana-graphite)

    docker pull choopooly/grafana-graphite  
    docker run -d -p 80:80 -p 2003:2003 -p 8125:8125/udp -p 8126:8126 --name grafana-dashboard choopooly/grafana-graphite
    

    We have modified the application to send metrics to graphite
    Navigate to http://[ip address] to view graphana, this will require configuring the graphs

Docker Pull Command
Owner
blilley

Comments (0)