Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JokerQyou/55a3a90b52458075a64ebed3d66b2ed1 to your computer and use it in GitHub Desktop.
Save JokerQyou/55a3a90b52458075a64ebed3d66b2ed1 to your computer and use it in GitHub Desktop.
Cloud-init user data to install some fundamental components
#cloud-config
runcmd:
- curl -fsSL https://get.docker.com | sh
- curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
- ln -s /usr/local/bin/docker-compose /usr/local/bin/dc
- apt-get install -y zsh git
groups:
- ubuntu: [ docker ]
users:
- name: CODEEXPANDER_CLIPBOARD
primary-group: CODEEXPANDER_CLIPBOARD
groups: [ sudo, docker ]
sudo: [ "ALL=(ALL) NOPASSWD:ALL" ] # delete this line if you don't need passwordless sudo access
shell: /usr/bin/zsh # change to whatever shell you need
ssh-authorized-keys:
- <place your ssh pubkey content here ... ssh-rsa ...>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment