-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
72 lines (55 loc) · 2.19 KB
/
compose.yaml
File metadata and controls
72 lines (55 loc) · 2.19 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: code-server
x-daemonless:
title: "code-server"
icon: ":material-microsoft-visual-studio-code:"
category: "Development"
description: "VS Code in the browser — run a full development environment on your FreeBSD server and access it from anywhere."
notes: |
!!! warning "Work in Progress"
This image is functional but may change significantly in a future release.
Common dev tools (gcc, clang, llvm, python, gmake) are baked into the image for now.
!!! warning "No sudo / su / doas in Terminal"
Podman strips the setuid bit from binaries at runtime, so `sudo`, `su`, and `doas` will not work inside the code-server terminal. To run commands as root, use `podman exec` from the host.
## Installing Packages
This is a known limitation of this WIP image and will likely improve in a future release.
Due to FreeBSD jail restrictions, `pkg install` cannot be run from the code-server terminal directly.
Install additional packages from the host using `podman exec`:
```sh
# Podman
doas podman exec -it -u root code-server pkg install rust cargo
# AppJail
doas appjail cmd jexec code_server pkg install rust cargo
```
!!! warning "Packages are not persistent"
If you recreate the container, you will need to reinstall any packages you have added.
upstream_url: "https://github.com/coder/code-server"
web_url: "https://coder.com/docs/code-server"
upstream_binary: true
user: "bsd"
mlock: false
community: ""
appjail: true
docs:
env:
PUID: "User ID for the application process"
PGID: "Group ID for the application process"
TZ: "Timezone for the container"
PASSWORD: "Password for web UI (leave unset to disable auth)"
DEFAULT_WORKSPACE: "Default folder opened in the editor (default: /config/workspace)"
volumes:
/config: "Configuration directory"
ports:
8080: "Web UI"
services:
code-server:
image: ghcr.io/daemonless/code-server:latest
container_name: code-server
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
volumes:
- /path/to/containers/code-server:/config
ports:
- 8080:8080