github.com/sentienttechnologies/studio-go-runner@v0.0.0-20201118202441-6d21f2ced8ee/examples/cloud/user-data (about) 1 #cloud-config 2 3 package_update: true 4 package_upgrade: true 5 package_reboot_if_required: true 6 7 locale: en_US.UTF-8 8 timezone: America/Los_Angeles 9 manage-resolv-conf: true 10 resolv_conf: 11 nameservers: 12 - '8.8.8.8' 13 - '8.8.4.4' 14 15 users: 16 - name: ubuntu 17 lock_passwd: true 18 shell: /bin/bash 19 primary_group: ubuntu 20 groups: 21 - docker 22 sudo: 23 - ALL=(ALL) NOPASSWD:ALL 24 ssh-import-id: None 25 lock_passwd: true 26 ssh-authorized-keys: 27 - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKgjpzQV3B7LeKzhTxKvUwrSrGdySJXPb0HNp+clsOeN kmutch@awsdev 28 29 30 packages: 31 - apt-transport-https 32 - ca-certificates 33 - curl 34 - gnupg-agent 35 - software-properties-common 36 - ssh 37 38 runcmd: 39 - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - 40 - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 41 - apt-get update -y 42 - apt-get install -y docker-ce docker-ce-cli containerd.io 43 - systemctl start docker 44 - systemctl enable docker 45 46 final_message: "The system is finally up, after $UPTIME seconds"