Created
June 27, 2017 04:53
-
-
Save initcron/e3dc21638da9594046b3e5a827f4ace8 to your computer and use it in GitHub Desktop.
User Data to setup Chef Codespace
This file contains hidden or 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 | |
| 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