Execute SSH script with groovy-ssh.
- groovy-ssh-0.1.2
- groovy-all-2.3.6
- jsch-0.1.51
- slf4j-api-1.7.7
- logback-core-1.1.2
- logback-classic-1.1.2
Execute SSH script with groovy-ssh.
See https://github.com/shipyard/shipyard
docker run -d --name rethinkdb -P shipyard/rethinkdb
docker run -d --name shipyard -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock --link rethinkdb:rethinkdb shipyard/shipyard
% ssh [email protected] | |
CoreOS (beta) | |
core@panamax ~ $ | |
core@panamax ~ $ sudo -i | |
panamax ~ # curl -O http://download.panamax.io/installer/pmx-installer-latest.zip | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 15983 100 15983 0 0 16368 0 --:--:-- --:--:-- --:--:-- 39366 | |
panamax ~ # unzip pmx-installer-latest.zip -d /var/panamax | |
Archive: pmx-installer-latest.zip |
If the Docker host is placed inside a proxy server, it needs to add the proxy configuration to each Dockerfile such as ENV http_proxy
.
Following allows transparent access from the container to outside without any proxy configuration.
fallocate -l 4G /swapfile | |
chmod -v 600 /swapfile | |
mkswap /swapfile | |
echo '/swapfile none swap sw 0 0' >> /etc/fstab | |
swapon -a | |
free | |
groupadd -g 900 jenkins | |
useradd -m -u 900 -g 900 -G docker jenkins |
# Search usable Java. We do this because various reports indicated | |
# that /usr/bin/java may not always point to Java 1.5 | |
# see http://www.nabble.com/guinea-pigs-wanted-----Hudson-RPM-for-RedHat-Linux-td25673707.html | |
for candidate in /etc/alternatives/java /usr/lib/jvm/java-1.6.0/bin/java /usr/lib/jvm/jre-1.6.0/bin/java /usr/lib/jvm/java-1.5.0/bin/java /usr/lib/jvm/jre-1.5.0/bin/java /usr/bin/java | |
do | |
[ -x "$JENKINS_JAVA_CMD" ] && break | |
JENKINS_JAVA_CMD="$candidate" | |
done | |
JAVA_CMD="$JENKINS_JAVA_CMD $JENKINS_JAVA_OPTIONS -DJENKINS_HOME=$JENKINS_HOME -jar $JENKINS_WAR" |
if (System.getProperty('os.name') == 'Linux') { | |
tasks.withType(JavaForkOptions) { | |
systemProperty 'java.security.egd', 'file:/dev/./urandom' | |
} | |
} |
https://github.com/int128/dockerfiles/blob/master/centos7/Dockerfile
% docker build my:centos7 .