Skip to content

Instantly share code, notes, and snippets.

@tankibaj
Created February 22, 2021 23:41
Show Gist options
  • Save tankibaj/d3bd2eda12d4fbab896a158bd5bd5dc0 to your computer and use it in GitHub Desktop.
Save tankibaj/d3bd2eda12d4fbab896a158bd5bd5dc0 to your computer and use it in GitHub Desktop.
# |- 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