Last active
April 22, 2020 02:10
-
-
Save JokerQyou/55a3a90b52458075a64ebed3d66b2ed1 to your computer and use it in GitHub Desktop.
Cloud-init user data to install some fundamental components
This file contains 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
#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