Skip to content

Commit e201541

Browse files
committed
chore: rebase 15.1
1 parent f4a4cfa commit e201541

3 files changed

Lines changed: 57 additions & 12 deletions

File tree

Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Source: Containerfile.j2
55
# --------------------------------------------------------------------------
66

7-
ARG BASE_VERSION=15
7+
ARG BASE_VERSION=15.1
88
FROM ghcr.io/daemonless/base:${BASE_VERSION} AS builder
99

1010
ARG APP_VERSION=""

Containerfile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_VERSION=15
1+
ARG BASE_VERSION=15.1
22
FROM ghcr.io/daemonless/base:${BASE_VERSION} AS builder
33

44
ARG APP_VERSION=""

README.md

Lines changed: 55 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ VS Code in the browser — run a full development environment on your FreeBSD se
1818
| **Website** | [https://coder.com/docs/code-server](https://coder.com/docs/code-server) |
1919

2020
## Version Tags
21-
2221
| Tag | Description | Best For |
2322
| :--- | :--- | :--- |
2423
| `latest` | **Upstream Binary**. Built from official release. | Most users. Matches Linux Docker behavior. |
2524

2625
## Prerequisites
27-
2826
Before deploying, ensure your host environment is ready. See the [Quick Start Guide](https://daemonless.io/guides/quick-start) for host setup instructions.
2927

3028
## Deployment
@@ -34,33 +32,42 @@ Before deploying, ensure your host environment is ready. See the [Quick Start Gu
3432
```yaml
3533
services:
3634
code-server:
37-
image: ghcr.io/daemonless/code-server:latest
35+
image: "ghcr.io/daemonless/code-server:latest"
3836
container_name: code-server
3937
environment:
40-
- PUID=1000
41-
- PGID=1000
42-
- TZ=UTC
38+
- PUID=1000 # User ID for the application process
39+
- PGID=1000 # Group ID for the application process
40+
- TZ=UTC # Timezone for the container
41+
- PASSWORD=<PASSWORD> # Password for web UI (leave unset to disable auth)
42+
- DEFAULT_WORKSPACE= # Default folder opened in the editor (default: /config/workspace)
43+
- DISABLE_MDO= # Do not use FreeBSD's mac_do facility to allow executing commands as root from the terminal (optional)
4344
volumes:
4445
- "/path/to/containers/code-server:/config"
4546
ports:
46-
- 8080:8080
47+
- "8080:8080"
4748
restart: unless-stopped
4849
```
4950
5051
### AppJail Director
51-
5252
**.env**:
5353
5454
```
55+
# .env
56+
5557
DIRECTOR_PROJECT=code-server
5658
PUID=1000
5759
PGID=1000
5860
TZ=UTC
61+
PASSWORD=<PASSWORD>
62+
DEFAULT_WORKSPACE=
63+
DISABLE_MDO=
5964
```
6065

6166
**appjail-director.yml**:
6267

6368
```yaml
69+
# appjail-director.yml
70+
6471
options:
6572
- virtualnet: ':<random> default'
6673
- nat:
@@ -69,12 +76,16 @@ services:
6976
name: code_server
7077
options:
7178
- container: 'boot args:--pull'
79+
- expose: '8080:8080 proto:tcp' \
7280
oci:
7381
user: root
7482
environment:
7583
- PUID: !ENV '${PUID}'
7684
- PGID: !ENV '${PGID}'
7785
- TZ: !ENV '${TZ}'
86+
- PASSWORD: !ENV '${PASSWORD}'
87+
- DEFAULT_WORKSPACE: !ENV '${DEFAULT_WORKSPACE}'
88+
- DISABLE_MDO: !ENV '${DISABLE_MDO}'
7889
volumes:
7990
- code-server: /config
8091
volumes:
@@ -85,11 +96,14 @@ volumes:
8596
**Makejail**:
8697
8798
```
99+
# Makejail
100+
88101
ARG tag=latest
89102

90103
OPTION overwrite=force
91104
OPTION from=ghcr.io/daemonless/code-server:${tag}
92105
```
106+
**Note**: Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the IPv4 address assigned by the virtual network.
93107

94108
### Podman CLI
95109

@@ -99,29 +113,57 @@ podman run -d --name code-server \
99113
-e PUID=1000 \
100114
-e PGID=1000 \
101115
-e TZ=UTC \
116+
-e PASSWORD=<PASSWORD> \
117+
-e DEFAULT_WORKSPACE= \
118+
-e DISABLE_MDO= \
102119
-v /path/to/containers/code-server:/config \
103120
ghcr.io/daemonless/code-server:latest
104121
```
105122

123+
### AppJail
124+
125+
```bash
126+
appjail oci run -Pd \
127+
-o overwrite=force \
128+
-o container="args:--pull" \
129+
-o virtualnet=":<random> default" \
130+
-o nat \
131+
-o expose="8080:8080 proto:tcp" \
132+
-e PUID=1000 \
133+
-e PGID=1000 \
134+
-e TZ=UTC \
135+
-e PASSWORD=<PASSWORD> \
136+
-e DEFAULT_WORKSPACE= \
137+
-e DISABLE_MDO= \
138+
-o fstab="/path/to/containers/code-server /config <pseudofs>" \
139+
ghcr.io/daemonless/code-server:latest code-server
140+
```
141+
**Note**: Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the IPv4 address assigned by the virtual network.
142+
106143
### Ansible
107144

108145
```yaml
109146
- name: Deploy code-server
110147
containers.podman.podman_container:
111148
name: code-server
112-
image: ghcr.io/daemonless/code-server:latest
149+
image: "ghcr.io/daemonless/code-server:latest"
113150
state: started
114151
restart_policy: always
115152
env:
116153
PUID: "1000"
117154
PGID: "1000"
118155
TZ: "UTC"
156+
PASSWORD: "<PASSWORD>"
157+
DEFAULT_WORKSPACE: ""
158+
DISABLE_MDO: ""
119159
ports:
120160
- "8080:8080"
121161
volumes:
122162
- "/path/to/containers/code-server:/config"
123163
```
124164
165+
Access at: `http://localhost:8080`
166+
125167
## Parameters
126168

127169
### Environment Variables
@@ -131,6 +173,9 @@ podman run -d --name code-server \
131173
| `PUID` | `1000` | User ID for the application process |
132174
| `PGID` | `1000` | Group ID for the application process |
133175
| `TZ` | `UTC` | Timezone for the container |
176+
| `PASSWORD` | `<PASSWORD>` | Password for web UI (leave unset to disable auth) |
177+
| `DEFAULT_WORKSPACE` | `` | Default folder opened in the editor (default: /config/workspace) |
178+
| `DISABLE_MDO` | `` | Do not use FreeBSD's mac_do facility to allow executing commands as root from the terminal (optional) |
134179

135180
### Volumes
136181

@@ -194,7 +239,7 @@ doas appjail cmd jexec code_server pkg install rust cargo
194239

195240
**Architectures:** amd64
196241
**User:** `bsd` (UID/GID via PUID/PGID, defaults to 1000:1000)
197-
**Base:** FreeBSD 15.0
242+
**Base:** FreeBSD 15.1
198243

199244
---
200245

0 commit comments

Comments
 (0)