This file contains 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
#!/bin/sh -x | |
export DOCKER_MACHINE_OS=$(uname -s | tr '[:upper:]' '[:lower:]') | |
export DOCKER_MACHINE_ARCH=$(uname -m | sed -e 's/x86_64/amd64/g') | |
export DOCKER_MACHINE_VERSION=${DOCKER_MACHINE_VERSION:-0.4.1} | |
sudo sh -xe << EOF | |
curl -sL https://github.com/docker/machine/releases/download/v${DOCKER_MACHINE_VERSION}/docker-machine_${DOCKER_MACHINE_OS}-${DOCKER_MACHINE_ARCH} > /usr/local/bin/docker-machine | |
chmod -v +x /usr/local/bin/docker-machine | |
EOF |
This file contains 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
#!/bin/sh -x | |
export DOCKER_COMPOSE_VERSION=${DOCKER_COMPOSE_VERSION:-1.4.0} | |
sudo sh -xe << EOF | |
curl -sL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose | |
chmod -v +x /usr/local/bin/docker-compose | |
EOF |
This file contains 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
#!/bin/bash | |
# | |
# Generates client and server certificates used to enable HTTPS | |
# remote authentication to a Docker daemon. | |
# | |
# See http://docs.docker.com/articles/https/ | |
# | |
# To start the Docker Daemon: | |
# | |
# sudo docker -d \ |
This file contains 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
#!/bin/sh -x | |
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout localhost.key -out localhost.pem \ | |
-subj "/C=us/ST=localhost/L=localhost/O=localhost/OU=localhost/CN=localhost/emailAddress=user@localhost" |
This file contains 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
#!/bin/sh -x | |
curl -ssL "https://releases.rancher.com/compose/beta/latest/rancher-compose-linux-amd64.tar.gz" \ | |
| tar -xvz --strip=2 -C /usr/local/bin \ | |
&& chmod +x /usr/local/bin/rancher-compose |
This file contains 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
#!/bin/sh -x | |
sed -i -e 's/java-6-sun/java-8-oracle/g' /etc/ca-certificates/update.d/jks-keystore \ | |
&& update-ca-certificates |
This file contains 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
#!/bin/sh -x | |
export DOCKER_PREFIX=${DOCKER_PREFIX:-/usr/local} | |
export DOCKER_VERSION=${DOCKER_VERSION:-1.7.1} | |
export DOCKER_GID=${DOCKER_GID:-999} | |
export DOCKER_GROUP=${DOCKER_GROUP:-docker} | |
gosu root:root sh -xe << EOF | |
mkdir -p ${DOCKER_PREFIX}/bin | |
curl -sSL https://get.docker.com/builds/$(uname -s)/$(uname -i)/docker-${DOCKER_VERSION} > ${DOCKER_PREFIX}/bin/docker | |
groupadd -frg ${DOCKER_GID} ${DOCKER_GROUP} | |
chown -v root:${DOCKER_GROUP} ${DOCKER_PREFIX}/bin/docker |
This file contains 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
#!/bin/sh -x | |
gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \ | |
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-$(dpkg --print-architecture)" \ | |
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-$(dpkg --print-architecture).asc" \ | |
&& gpg --verify /usr/local/bin/gosu.asc \ | |
&& rm /usr/local/bin/gosu.asc \ | |
&& chmod +xs /usr/local/bin/gosu |
This file contains 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
#!/bin/sh | |
if [ "$1" = "" ]; then | |
echo "Usage: $0 <host> [<fallocate length>]" | |
exit 1 | |
fi | |
DOCKER_MACHINE_HOST_NAME=$1 | |
DOCKER_MACHINE_SWAP_SIZE=${DOCKER_MACHINE_SWAP_SIZE:-2G} |
This file contains 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 -OL -H "Cookie: oraclelicense=accept-securebackup-cookie" \ | |
"http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz" |