In a terminal start a server.
$ python -m SimpleHTTPServer 8000In another terminal set up the cgroups freezer.
In a terminal start a server.
$ python -m SimpleHTTPServer 8000In another terminal set up the cgroups freezer.
| node { | |
| def currentVersion = getCurrentVersion() | |
| def newVersion = getNextVersion(currentVersion) | |
| def frontendIp = kubectl("get svc l5d -o jsonpath=\"{.status.loadBalancer.ingress[0].ip}\"").trim() | |
| def originalDst = getDst(getDtab()) | |
| stage("clone") { | |
| git url: gitRepo + '.git', branch: gitBranch | |
| } |
| { | |
| "name": "javascript-development-environment", | |
| "version": "1.0.0", | |
| "description": "JavaScript development environment Pluralsight course by Cory House", | |
| "scripts": { | |
| }, | |
| "author": "Cory House", | |
| "license": "MIT", | |
| "dependencies": { | |
| "whatwg-fetch": "1.0.0" |
| #!/bin/bash | |
| source /etc/environment | |
| hostname=$(cat /etc/machine-id) | |
| machines=$(etcdctl ls /consul.io/bootstrap/machines) | |
| #If there are 'machines' then the cluster has been initialised. | |
| if [ -z "$machines" ] | |
| then | |
| flags="${flags} -bootstrap" |
| # Add this snippet to the top of your playbook. | |
| # It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
| # gwillem@gmail.com | |
| - hosts: all | |
| gather_facts: False | |
| tasks: | |
| - name: install python 2 | |
| raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.yourpackage</groupId> | |
| <artifactId>parentartifactofeverything</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <modules> | |
| <module>module1</module> | |
| <module>module2</module> |
| import org.csanchez.jenkins.plugins.kubernetes.* | |
| import jenkins.model.* | |
| def j = Jenkins.getInstance() | |
| def k = new KubernetesCloud( | |
| 'jenkins-test', | |
| null, | |
| 'https://130.211.146.130', | |
| 'default', |
| #! /usr/bin/env bash | |
| # Install any build dependencies needed for curl | |
| sudo apt-get build-dep curl | |
| # Get latest (as of Feb 25, 2016) libcurl | |
| mkdir ~/curl | |
| cd ~/curl | |
| wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2 | |
| tar -xvjf curl-7.50.2.tar.bz2 |