From cc595229d67d2e38b6ebfd83d6d6e4fb89bf2366 Mon Sep 17 00:00:00 2001 From: Taku Amano Date: Thu, 13 Jan 2022 11:57:46 +0900 Subject: [PATCH] Add cloud-init.yaml for Ubuntu 20.04. --- config/cloud-init-ubuntu-20.04.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 config/cloud-init-ubuntu-20.04.yaml diff --git a/config/cloud-init-ubuntu-20.04.yaml b/config/cloud-init-ubuntu-20.04.yaml new file mode 100644 index 0000000..e2b63d4 --- /dev/null +++ b/config/cloud-init-ubuntu-20.04.yaml @@ -0,0 +1,19 @@ +#cloud-config + +runcmd: + - /bin/bash + - -c + - | + #!/bin/bash + export DEBIAN_FRONTEND=noninteractive + apt-get update + apt-get install -y make git zip \ + docker.io \ + mysql-client + # required by HTTP::Tiny + apt-get install -y libio-socket-ssl-perl + curl -L https://github.com/docker/compose/releases/download/1.26.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose + chmod +x /usr/local/bin/docker-compose + # for NFS + apt-get install -y nfs-common + adduser ubuntu docker