Skip to content

Instantly share code, notes, and snippets.

View jlrigau's full-sized avatar

Jean-Louis Rigau jlrigau

  • Nørrecraft
  • Paris
View GitHub Profile
@jlrigau
jlrigau / check-mesos-jenkins-scheduler
Created February 11, 2015 14:50
How to check Mesos Jenkins Scheduler
import org.jenkinsci.plugins.mesos.*;
import org.apache.mesos.*;
JenkinsScheduler scheduler = (JenkinsScheduler) Mesos.getInstance()
.getScheduler();
scheduler.isRunning();
@jlrigau
jlrigau / restart-jenkins
Last active August 29, 2015 14:15
How to restart Jenkins
To restart Jenkins manually, you can use either of the following commands:
(jenkins_url)/safeRestart - Allows all running builds to complete.
(jenkins_url)/restart - Forces a restart without waiting for builds to complete.
@jlrigau
jlrigau / docker-private-registry
Last active August 29, 2015 14:14
How to push image to Docker private registry
stop a service.
sudo use docker stop
restart use with --insecure-registry arguments:
/usr/bin/docker -d --insecure-registry localhost:5000
or correct /etc/default/docker record and supplement a following line:
DOCKER_OPTS="--insecure-registry localhost:5000"