Skip to content

Instantly share code, notes, and snippets.

@timfallmk
Last active September 22, 2015 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timfallmk/0a90cae49a8c47d799fa to your computer and use it in GitHub Desktop.
Save timfallmk/0a90cae49a8c47d799fa to your computer and use it in GitHub Desktop.
Google Cloud Engine Startup Scripts
#!/bin/bash
sudo su # this may not be necessary, as it usually runs as root
yum install -y wget vim curl
yum update -y
curl -sSL https://get.docker.com/ | sh
systemctl start docker
# Possibly remove if the `nogroup` is present
groupadd nogroup
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config
wget http://downloads.mesosphere.io/dcos/onprem/CM.2/setup_dcos.sh -o=/tmp/setup_dcos.sh
chmod +x /tmp/setup_dcos.sh
#!/bin/bash
sudo su # this may not be necessary, as it usually runs as root
apt-get update && apt-get install -y wget vim curl
curl -sSL https://get.docker.com/ | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment