From 8bbd15db288bd233f08939562e22ab4b2708e1b3 Mon Sep 17 00:00:00 2001 From: s464863 Date: Sat, 23 Nov 2024 13:46:37 +0100 Subject: [PATCH] Upload files to "/" --- cloud_init_vscode.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cloud_init_vscode.yml diff --git a/cloud_init_vscode.yml b/cloud_init_vscode.yml new file mode 100644 index 0000000..c45d08c --- /dev/null +++ b/cloud_init_vscode.yml @@ -0,0 +1,15 @@ +#cloud-config +write_files: + - path: /root/server-config.yaml + content: | + bind-addr: 0.0.0.0:8080 + auth: password + password: admin + cert: false + owner: root:root + +runcmd: + - cd /root + - export HOME=/root + - curl -fsSL https://code-server.dev/install.sh | sh > /root/install.log 2>&1 + - code-server --config /root/server-config.yaml > /root/code-server.log 2>&1 & \ No newline at end of file