Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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