From b2bb51943fcd7c483bd7a8119c48832ea3341e26 Mon Sep 17 00:00:00 2001 From: Wojciech Jarmosz Date: Tue, 30 Nov 2021 00:24:54 +0100 Subject: [PATCH] cloud-init config for vscode --- cloud-init | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cloud-init diff --git a/cloud-init b/cloud-init new file mode 100644 index 0000000..9207faa --- /dev/null +++ b/cloud-init @@ -0,0 +1,20 @@ +#cloud-config + +write_files: + - content: | + curl -fsSL https://code-server.dev/install.sh > /root/install.sh + path: /root/install.sh + owner: root:root + - content: | + bind-addr: 0.0.0.0:8080 + auth: password + password: admin + cert: false + path: /root/config.yml + owner: root:root + +runcmd: + - cd /root/ + - chmod u+x install.sh + - ./install.sh + - code-server --config config.yml \ No newline at end of file