From ddbcd7306c372c8b70620c98e601b81e4c8428ee Mon Sep 17 00:00:00 2001 From: varpon Date: Wed, 27 May 2026 01:47:31 +0000 Subject: [PATCH 1/3] fix: allow internal git extension to start add required `@vscode/fs-copyfile` module --- Containerfile | 3 ++- Containerfile.j2 | 3 ++- README.md | 4 ---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Containerfile b/Containerfile index 51c623d..08d7c63 100644 --- a/Containerfile +++ b/Containerfile @@ -59,7 +59,8 @@ RUN patch -p1 < /tmp/patches/node-pty.patch && \ node /tmp/patches/deviceid.js && \ node /tmp/patches/platform.js -RUN npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog +RUN npm install --no-audit --no-fund @vscode/fs-copyfile && \ + npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog # Install code-server root deps + run postinstall (compiles argon2, node-pty etc.) WORKDIR /usr/local/lib/node_modules/code-server diff --git a/Containerfile.j2 b/Containerfile.j2 index f18054c..daf4b9b 100644 --- a/Containerfile.j2 +++ b/Containerfile.j2 @@ -53,7 +53,8 @@ RUN patch -p1 < /tmp/patches/node-pty.patch && \ node /tmp/patches/deviceid.js && \ node /tmp/patches/platform.js -RUN npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog +RUN npm install --no-audit --no-fund @vscode/fs-copyfile && \ + npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog # Install code-server root deps + run postinstall (compiles argon2, node-pty etc.) WORKDIR /usr/local/lib/node_modules/code-server diff --git a/README.md b/README.md index 4843bec..3a9e9b8 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,10 @@ VS Code in the browser — run a full development environment on your FreeBSD se | :--- | :--- | :--- | | `latest` | **Upstream Binary**. Built from official release. | Most users. Matches Linux Docker behavior. | - ## Prerequisites Before deploying, ensure your host environment is ready. See the [Quick Start Guide](https://daemonless.io/guides/quick-start) for host setup instructions. - ## Deployment ### Podman Compose @@ -96,7 +94,6 @@ OPTION from=ghcr.io/daemonless/code-server:${tag} ### Podman CLI ```bash - podman run -d --name code-server \ -p 8080:8080 \ -e PUID=1000 \ @@ -125,7 +122,6 @@ podman run -d --name code-server \ - "/path/to/containers/code-server:/config" ``` - ## Parameters ### Environment Variables From 8d028959d02f8f544512927686ae57f84e35a15f Mon Sep 17 00:00:00 2001 From: varpon Date: Wed, 27 May 2026 01:49:03 +0000 Subject: [PATCH 2/3] feat: add git and ripgrep executables to image --- Containerfile | 4 +++- Containerfile.j2 | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index 08d7c63..b56a92e 100644 --- a/Containerfile +++ b/Containerfile @@ -79,7 +79,7 @@ ARG FREEBSD_ARCH=amd64 ARG APP_VERSION="" ARG UPSTREAM_URL="https://registry.npmjs.org/code-server/latest" ARG UPSTREAM_JQ=".version" -ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain" +ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git ripgrep" LABEL org.opencontainers.image.title="code-server" \ org.opencontainers.image.description="code-server on FreeBSD." \ @@ -110,6 +110,8 @@ RUN pkg update && \ COPY --from=builder /app/version /app/version COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules RUN ln -sf /usr/local/lib/node_modules/code-server/out/node/entry.js /usr/local/bin/code-server && \ + mkdir -p /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin && \ + ln -sf /usr/local/bin/rg /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin/rg && \ chmod -R o+rX /usr/local/lib/node_modules # Copy root filesystem diff --git a/Containerfile.j2 b/Containerfile.j2 index daf4b9b..e9b5a27 100644 --- a/Containerfile.j2 +++ b/Containerfile.j2 @@ -73,7 +73,7 @@ ARG FREEBSD_ARCH=amd64 ARG APP_VERSION="" ARG UPSTREAM_URL="https://registry.npmjs.org/code-server/latest" ARG UPSTREAM_JQ=".version" -ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain" +ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git ripgrep" LABEL org.opencontainers.image.title="code-server" \ org.opencontainers.image.description="code-server on FreeBSD." \ @@ -104,6 +104,8 @@ RUN pkg update && \ COPY --from=builder /app/version /app/version COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules RUN ln -sf /usr/local/lib/node_modules/code-server/out/node/entry.js /usr/local/bin/code-server && \ + mkdir -p /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin && \ + ln -sf /usr/local/bin/rg /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin/rg && \ chmod -R o+rX /usr/local/lib/node_modules # Copy root filesystem From 45586fe10e56ebb09be2decd3a60a4c485085630 Mon Sep 17 00:00:00 2001 From: varpon Date: Wed, 27 May 2026 02:30:00 +0000 Subject: [PATCH 3/3] feat: add `FreeBSD-ssh` package to allow git over ssh --- Containerfile | 2 +- Containerfile.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index b56a92e..71315e9 100644 --- a/Containerfile +++ b/Containerfile @@ -79,7 +79,7 @@ ARG FREEBSD_ARCH=amd64 ARG APP_VERSION="" ARG UPSTREAM_URL="https://registry.npmjs.org/code-server/latest" ARG UPSTREAM_JQ=".version" -ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git ripgrep" +ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git FreeBSD-ssh ripgrep" LABEL org.opencontainers.image.title="code-server" \ org.opencontainers.image.description="code-server on FreeBSD." \ diff --git a/Containerfile.j2 b/Containerfile.j2 index e9b5a27..dacdcb9 100644 --- a/Containerfile.j2 +++ b/Containerfile.j2 @@ -73,7 +73,7 @@ ARG FREEBSD_ARCH=amd64 ARG APP_VERSION="" ARG UPSTREAM_URL="https://registry.npmjs.org/code-server/latest" ARG UPSTREAM_JQ=".version" -ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git ripgrep" +ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git FreeBSD-ssh ripgrep" LABEL org.opencontainers.image.title="code-server" \ org.opencontainers.image.description="code-server on FreeBSD." \