Skip to content

Commit 2bf994e

Browse files
authored
Merge pull request #1 from varpon/fixes
Make git integration functional and add tools to image
2 parents 39f92fa + 45586fe commit 2bf994e

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

Containerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ RUN patch -p1 < /tmp/patches/node-pty.patch && \
5959
node /tmp/patches/deviceid.js && \
6060
node /tmp/patches/platform.js
6161

62-
RUN npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog
62+
RUN npm install --no-audit --no-fund @vscode/fs-copyfile && \
63+
npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog
6364

6465
# Install code-server root deps + run postinstall (compiles argon2, node-pty etc.)
6566
WORKDIR /usr/local/lib/node_modules/code-server
@@ -78,7 +79,7 @@ ARG FREEBSD_ARCH=amd64
7879
ARG APP_VERSION=""
7980
ARG UPSTREAM_URL="https://registry.npmjs.org/code-server/latest"
8081
ARG UPSTREAM_JQ=".version"
81-
ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain"
82+
ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git FreeBSD-ssh ripgrep"
8283

8384
LABEL org.opencontainers.image.title="code-server" \
8485
org.opencontainers.image.description="code-server on FreeBSD." \
@@ -109,6 +110,8 @@ RUN pkg update && \
109110
COPY --from=builder /app/version /app/version
110111
COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
111112
RUN ln -sf /usr/local/lib/node_modules/code-server/out/node/entry.js /usr/local/bin/code-server && \
113+
mkdir -p /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin && \
114+
ln -sf /usr/local/bin/rg /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin/rg && \
112115
chmod -R o+rX /usr/local/lib/node_modules
113116

114117
# Copy root filesystem

Containerfile.j2

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ RUN patch -p1 < /tmp/patches/node-pty.patch && \
5353
node /tmp/patches/deviceid.js && \
5454
node /tmp/patches/platform.js
5555

56-
RUN npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog
56+
RUN npm install --no-audit --no-fund @vscode/fs-copyfile && \
57+
npm rebuild node-pty @vscode/spdlog @parcel/watcher @vscode/native-watchdog
5758

5859
# Install code-server root deps + run postinstall (compiles argon2, node-pty etc.)
5960
WORKDIR /usr/local/lib/node_modules/code-server
@@ -72,7 +73,7 @@ ARG FREEBSD_ARCH=amd64
7273
ARG APP_VERSION=""
7374
ARG UPSTREAM_URL="https://registry.npmjs.org/code-server/latest"
7475
ARG UPSTREAM_JQ=".version"
75-
ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain"
76+
ARG PACKAGES="node22 npm-node22 ca_root_nss libinotify doas python3 gmake gcc llvm FreeBSD-clang FreeBSD-toolchain git FreeBSD-ssh ripgrep"
7677

7778
LABEL org.opencontainers.image.title="code-server" \
7879
org.opencontainers.image.description="code-server on FreeBSD." \
@@ -103,6 +104,8 @@ RUN pkg update && \
103104
COPY --from=builder /app/version /app/version
104105
COPY --from=builder /usr/local/lib/node_modules /usr/local/lib/node_modules
105106
RUN ln -sf /usr/local/lib/node_modules/code-server/out/node/entry.js /usr/local/bin/code-server && \
107+
mkdir -p /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin && \
108+
ln -sf /usr/local/bin/rg /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/ripgrep/bin/rg && \
106109
chmod -R o+rX /usr/local/lib/node_modules
107110

108111
# Copy root filesystem

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ VS Code in the browser — run a full development environment on your FreeBSD se
2323
| :--- | :--- | :--- |
2424
| `latest` | **Upstream Binary**. Built from official release. | Most users. Matches Linux Docker behavior. |
2525

26-
2726
## Prerequisites
2827

2928
Before deploying, ensure your host environment is ready. See the [Quick Start Guide](https://daemonless.io/guides/quick-start) for host setup instructions.
3029

31-
3230
## Deployment
3331

3432
### Podman Compose
@@ -96,7 +94,6 @@ OPTION from=ghcr.io/daemonless/code-server:${tag}
9694
### Podman CLI
9795

9896
```bash
99-
10097
podman run -d --name code-server \
10198
-p 8080:8080 \
10299
-e PUID=1000 \
@@ -125,7 +122,6 @@ podman run -d --name code-server \
125122
- "/path/to/containers/code-server:/config"
126123
```
127124
128-
129125
## Parameters
130126
131127
### Environment Variables

0 commit comments

Comments
 (0)