commit 8bbd15db288bd233f08939562e22ab4b2708e1b3 Author: s464863 Date: Sat Nov 23 13:46:37 2024 +0100 Upload files to "/" 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