-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrig.yaml
More file actions
25 lines (25 loc) · 1.05 KB
/
Copy pathrig.yaml
File metadata and controls
25 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: code-server
port: 8080
# A browser IDE needs headroom for language servers, extensions, and terminals.
workspace:
resources: { ramMb: 2048, vcpuCount: 2, diskSizeMb: 3072 }
deployment:
strategy: image
# Freeze the code-server install into an image: `rig deploy` runs `install:`
# once in a builder VM, snapshots the rootfs, and later deploys with unchanged
# inputs boot from the cached image instead of re-running the installer.
reproducible: true
install: |
set -euo pipefail
# Install code-server (VS Code in the browser) on top of the rigbox base. The
# upstream installer lays down the .deb at the system path (/usr/bin), so it
# runs as root and `code-server` resolves on the unit's PATH.
curl -fsSL https://code-server.dev/install.sh | sudo sh
code-server --version
start: >-
code-server --bind-addr 0.0.0.0:8080 --auth none --user-data-dir /home/developer/data/code-server --extensions-dir /home/developer/data/code-server/extensions /home/developer/data
health:
path: /healthz
timeoutSeconds: 90
env:
DATA_DIR: /home/developer/data