Skip to content

Instantly share code, notes, and snippets.

@initcron
Created June 27, 2017 04:53
Show Gist options
  • Select an option

  • Save initcron/e3dc21638da9594046b3e5a827f4ace8 to your computer and use it in GitHub Desktop.

Select an option

Save initcron/e3dc21638da9594046b3e5a827f4ace8 to your computer and use it in GitHub Desktop.
User Data to setup Chef Codespace
#!/bin/bash
apt-get update
apt-get install -y git wget
# Install Docker
wget -qO- get.docker.com | sh &
wait
service docker start
# Start Codespaces
cd /root
git clone https://github.com/codespaces-io/codespaces.git
curl -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
cd /root/codespaces/cs-chef-ci
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment