This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.jenkinsci.plugins.mesos.*; | |
| import org.apache.mesos.*; | |
| JenkinsScheduler scheduler = (JenkinsScheduler) Mesos.getInstance() | |
| .getScheduler(); | |
| scheduler.isRunning(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -s -o slave.jar http://${JENKINS_HOST}:${JENKINS_PORT}/jnlpJars/slave.jar && \ | |
| java -jar slave.jar -jnlpUrl http://${JENKINS_HOST}:${JENKINS_PORT}/computer/test/slave-agent.jnlp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker rmi $(docker images | grep "^<none>" | awk "{print $3}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo find / -name ".DS_Store" -depth -exec rm {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| du -sh ./* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rsync -avz --delete -e 'ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ProxyCommand="ssh -W %h:%p USER@PROXY -p 2222"' --progress /data USER@DESTINATION:/backup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MARATHON_BASE_URL=http://[REPLACE_IT]:8080 | |
| VERSION=$(curl -X PUT -H "Content-Type: application/json" $MARATHON_BASE_URL/v2/apps/dashboard?force=true [email protected] | jq '.version' | tr -d '"') | |
| if [ $(curl -sL -w "%{http_code}" $MARATHON_BASE_URL/v2/apps/dashboard/versions/$VERSION -o /dev/null) != 200 ]; then | |
| curl -X POST $MARATHON_BASE_URL/v2/apps/dashboard/restart?force=true | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo rm -f /tmp/mesos/meta/slaves/latest | |
| sudo systemctl restart mesos-slave.service |
OlderNewer