Created
February 22, 2021 23:41
-
-
Save tankibaj/d3bd2eda12d4fbab896a158bd5bd5dc0 to your computer and use it in GitHub Desktop.
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
# |- Configure users and groups | |
groups: sudo, adm, docker | |
# |- Run arbitrary commands. Each item can be either a list or a string. All commands must be proper yaml | |
runcmd: | |
- [ sh, -c, 'curl -sSL https://get.docker.com/ | sh' ] | |
- [ sh, -c, 'sudo curl -L https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep "tag_name" | cut -d \" -f4)/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose' ] | |
- [ sh, -c, 'sudo chmod +x /usr/local/bin/docker-compose' ] | |
- [ sh, -c, 'sudo docker run -d nginx:latest' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment