Upload files to "/"
This commit is contained in:
commit
8bbd15db28
15
cloud_init_vscode.yml
Normal file
15
cloud_init_vscode.yml
Normal file
@ -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 &
|
Loading…
Reference in New Issue
Block a user