A curated base container image providing a consistent runtime for Forgejo pipelines and coder development containers. https://git.van-hemmen.com/actions/sindri
  • Dockerfile 62.3%
  • Shell 37.7%
Find a file
Claude 018739bd48
All checks were successful
/ docker-tag-ci (push) Successful in 5m39s
/ docker-tag-coder (push) Successful in 6m15s
/ docker-tag-coder-xfce-vnc (push) Successful in 24m15s
Add kubeconform and kube-linter to the base image (#18)
## What

Add **kubeconform** (v0.8.0) and **kube-linter** (v0.8.3) to the **`base`** stage, so all three published variants inherit them: `ci` (Forgejo pipelines), `coder`, and `coder-xfce-vnc`.

## Why

Repos that lint/validate k8s manifests (searxng, forgejo, …) currently install these in every CI job via:
```yaml
- uses: actions/setup-go@v6      # downloads the whole Go toolchain, every run
- run: go install …@latest       # fetches the module tree + COMPILES from source
```
That's a Go-toolchain download **plus a from-source compile** of each tool on every job — slow, unpinned, and network-fragile (it was hanging for minutes on this cluster). Baking pinned prebuilt binaries lets pipelines run `kubeconform` / `kube-linter` directly (seconds, reproducible, no runtime Go/proxy/GitHub dependency), and gives the coder/desktop workspaces the same tools for linting before a push.

## Why `base` (not `ci`, not `update-k8s-tools.sh`)

- **`base`** → one definition, inherited by every variant — matching the Firebase precedent ("in base so every variant ships it").
- **Baked, not runtime:** unlike `kubectl`/`helm`/`talosctl` (cluster-version-coupled, fast-moving → `update-k8s-tools.sh` at runtime), these are dependency-free static binaries with a slow release cadence, and CI needs them present at job start — runtime install is the exact flakiness being removed.

## Implementation

Same fetch idiom as the Firebase block (bounded `curl` retries, then assert-runs), placed right after it in `base`:
```dockerfile
ARG KUBECONFORM_VERSION=0.8.0
ARG KUBE_LINTER_VERSION=0.8.3
RUN curl … kubeconform-linux-amd64.tar.gz | tar -xz -C /usr/local/bin kubeconform &&     curl … kube-linter-linux.tar.gz        | tar -xz -C /usr/local/bin kube-linter &&     chmod +x /usr/local/bin/kubeconform /usr/local/bin/kube-linter &&     kubeconform -v && kube-linter version
```
Bump the ARGs to upgrade.

## Verification

- `base` already provides `curl` + `tar` and sets `SHELL … pipefail`, so a failed `curl | tar` fails the build.
- Ran the **exact** install commands (piped, under `pipefail`): both extract and report versions cleanly (`v0.8.0`, `0.8.3`).

## Follow-up (separate repo)

Once this is built and `ci-latest` carries the tools, the consuming workflows drop `setup-go` + `go install` and switch `container.image` to `git.van-hemmen.com/actions/sindri:ci-latest`. (I can open that on searxng.)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Reviewed-on: #18
Reviewed-by: Guillaume "B.B." Van Hemmen <guillaumehemmen@noreply.git.van-hemmen.com>
2026-07-24 06:41:24 +00:00
.forgejo/workflows #5 - Add coder-xfce-vnc image variant and move user setup to runtime (#6) 2026-05-30 07:23:03 +00:00
asset #0000 - Add essential project documentation and license files 2026-02-15 21:06:38 +01:00
scripts Migrate Claude Desktop to Anthropic's official APT repo (fixes the coder-xfce-vnc build) (#19) 2026-07-24 06:12:16 +00:00
CODE_OF_CONDUCT.md #0000 - Add essential project documentation and license files 2026-02-15 21:06:38 +01:00
CONTRIBUTING.md #0000 - Add essential project documentation and license files 2026-02-15 21:06:38 +01:00
Dockerfile Add kubeconform and kube-linter to the base image (#18) 2026-07-24 06:41:24 +00:00
LICENSE #0000 - Add essential project documentation and license files 2026-02-15 21:06:38 +01:00
README.md Migrate Claude Desktop to Anthropic's official APT repo (fixes the coder-xfce-vnc build) (#19) 2026-07-24 06:12:16 +00:00

sindri.png

Sindri

A flexible, multi-stage Docker image providing minimal to complete development environments. Choose the variant that fits your needs: from a lightweight base image to a full-featured development workspace.

Image Variants

Sindri provides three image variants built from a common base:

🔹 ci-* - CI/CD Ready

Lightweight image with Node.js LTS for continuous integration pipelines.

Features:

  • Ubuntu 24.04 base with essential system utilities
  • Core utilities (curl, wget, git, jq, nano, etc.)
  • Network tools (ssh, rsync, netcat, etc.)
  • Compression tools (zip, tar, gzip, xz, brotli, etc.)
  • Build essentials (make, autoconf, pkg-config, etc.)
  • Azul Zulu JDK, configurable at build time
  • Firebase CLI (firebase-tools, standalone binary) — pairs with the JDK for firebase deploy and the Firebase Emulator Suite
  • Node.js LTS (via NodeSource)
  • npm and yarn
  • Timezone configured to Europe/Paris
  • Working directory set to /workspaces

Use case: Ideal for GitHub Actions, Forgejo Actions, GitLab CI, or any CI/CD pipeline requiring Node.js or the Firebase CLI / Emulator Suite.

Available as: git.van-hemmen.com/actions/sindri:ci-latest, git.van-hemmen.com/actions/sindri:ci-26.8.1

docker pull git.van-hemmen.com/actions/sindri:ci-latest
docker run -it git.van-hemmen.com/actions/sindri:ci-latest

🔹 coder-* - Full Development Environment

Complete dev workspace with the coder user; per-user runtime is provisioned at workspace start by scripts/coder-init.sh so the same image works whether the PVC mounts at /workspaces or at /home/coder.

Features:

  • Everything from the base layer
  • Non-root coder user with passwordless sudo
  • coder user created with UID/GID 1000 by default
  • Default project directory set to /home/coder/Projects
  • scripts/coder-init.sh provisions, at workspace start: customized bash prompt and environment, NVM with Node.js 24 ( configurable), Yarn, and a global gitignore from toptal.com
  • update-k8s-tools on PATH — installs/updates kubectl, helm, and talosctl (latest stable) into ~/.local/bin; binaries are fetched at runtime, so re-run it any time to upgrade (pin with KUBECTL_VERSION=… HELM_VERSION=… TALOS_VERSION=… update-k8s-tools)
  • Ready for VS Code Remote Containers, Coder, or similar

Use case: Full-featured development environment for remote coding, devcontainers, or local development.

Available as: git.van-hemmen.com/actions/sindri:coder-latest, git.van-hemmen.com/actions/sindri:coder-26.8.1

docker pull git.van-hemmen.com/actions/sindri:coder-latest
docker run -it git.van-hemmen.com/actions/sindri:coder-latest

🔹 coder-xfce-vnc-* - Web Desktop Development Environment

Desktop-enabled workspace based on the coder variant, with XFCE and noVNC.

Features:

  • Everything from the coder variant
  • XFCE desktop environment
  • TigerVNC server (loopback only) + websockify on port 6080
  • noVNC web client with a path-aware redirect (works under Coder's path-based app proxy without wildcard DNS — see Web access patterns below)
  • Pre-installed GUI applications:
    • Firefox — from Mozilla's official APT repo (not the Ubuntu Snap stub)
    • JetBrains Toolbox — installed to /opt/jetbrains-toolbox, symlinked into /usr/local/bin, with a system-wide XDG menu entry pre-shipped
    • Lens — the k8slens Kubernetes IDE, installed in this variant from the official k8slens APT repo; launches out of the box through a wrapper that applies the flags Electron apps need in an unprivileged pod — see Electron & Chromium-based apps below
    • Claude Desktop — Anthropic's AI assistant desktop app (Chat, Cowork, and Code tabs), installed from Anthropic's official APT repo; wrapper-routed like Lens — see Electron & Chromium-based apps below. Linux support is an Anthropic-labelled beta: Computer Use and dictation aren't available yet
    • Nimbalyst — a visual workspace for building with Codex, Claude Code, and more. Upstream ships only a Linux AppImage; each image build pulls the latest release and pre-extracts it to /opt/nimbalyst (FUSE can't self-mount it in an unprivileged pod), then routes it through a wrapper like Lens/Claude — see Electron & Chromium-based apps below
  • Per-user desktop bootstrap via scripts/coder-init-desktop.sh (heals the XFCE preferred-browser setting when the PVC carries stale state)
  • Runtime env vars exposed for tuning: DISPLAY, VNC_PORT (5901), NOVNC_PORT (6080), VNC_GEOMETRY ( 1920x1080), VNC_DEPTH (24), VNC_PASSWORD (empty by default)

Use case: Remote desktop development environment for Coder workspaces, browser-based desktop access, or any tooling that needs a real graphical session (JetBrains IDEs running locally, Electron tools, browser automation, etc.).

Available as: git.van-hemmen.com/actions/sindri:coder-xfce-vnc-latest, git.van-hemmen.com/actions/sindri:coder-xfce-vnc-26.8.1

docker pull git.van-hemmen.com/actions/sindri:coder-xfce-vnc-latest
docker run -it -p 6080:6080 git.van-hemmen.com/actions/sindri:coder-xfce-vnc-latest
# Open http://localhost:6080/ — the index page auto-redirects to the noVNC client.

Usage

Quick Start

# Pull and run the CI variant
docker pull git.van-hemmen.com/actions/sindri:ci-latest
docker run -it git.van-hemmen.com/actions/sindri:ci-latest

# Pull and run the coder variant
docker pull git.van-hemmen.com/actions/sindri:coder-latest
docker run -it git.van-hemmen.com/actions/sindri:coder-latest

# Pull and run the XFCE/noVNC coder variant
docker pull git.van-hemmen.com/actions/sindri:coder-xfce-vnc-latest
docker run -it -p 6080:6080 git.van-hemmen.com/actions/sindri:coder-xfce-vnc-latest

Building with Custom Arguments

The image supports build arguments:

docker build --target coder \
  --build-arg ARG_TZ="America/New_York" \
  --build-arg AZUL_JAVA_MAJOR=21 \
  -t sindri:coder-custom .

Available arguments:

  • UBUNTU_VERSION: Ubuntu base image version (default: 24.04)
  • ARG_TZ: Timezone (default: Europe/Paris)
  • AZUL_JAVA_MAJOR: Azul Zulu Java major version (default: 21)
  • USER_NAME: Workspace user name (default: coder)
  • USER_UID: Workspace user UID (default: 1000)
  • USER_GID: Workspace user GID (default: 1000)
  • PROJECTS_DIR: Default project directory for the coder variants (default: /home/coder/Projects)

Node.js version and global-gitignore URL are no longer build-time arguments. They are configured at workspace start via environment variables consumed by scripts/coder-init.sh.

Using with Forgejo/GitHub Actions

Use the CI variant in your workflow:

jobs:
  build:
    runs-on: ubuntu-latest
    container: git.van-hemmen.com/actions/sindri:ci-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm install
      - run: npm test

Using with VS Code Remote Containers

Create .devcontainer/devcontainer.json:

{
  "name": "Sindri Development Environment",
  "build": {
    "dockerfile": "../Dockerfile",
    "target": "coder"
  },
  "remoteUser": "coder",
  "workspaceFolder": "/home/coder/Projects"
}

Or reference the remote image:

{
  "name": "Sindri Development Environment",
  "image": "git.van-hemmen.com/actions/sindri:coder-latest",
  "remoteUser": "coder",
  "workspaceFolder": "/home/coder/Projects"
}

Extending the Image

Build on top of any variant:

FROM git.van-hemmen.com/actions/sindri:ci-latest

# Add your custom tools
RUN apt-get update && apt-get install -y \
    postgresql-client \
    redis-tools \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /myapp

Workspace Initialization (coder-init)

The coder-* variants no longer bake the per-user home directory contents into image layers, so the same image can be deployed in either of the two Coder workspace modes:

  • Devcontainer mode — the PVC mounts at /workspaces, leaving $HOME (/home/coder) intact.
  • Plain Kubernetes pod mode — the PVC mounts at /home/coder and shadows anything baked into image layers.

To populate $HOME consistently in both modes, the script scripts/coder-init.sh (shipped in the image as /usr/local/bin/coder-init) performs the per-user setup at workspace start. It is idempotent and safe to re-run.

What it does (as the workspace user):

  • Seeds ~/.bashrc from /etc/skel/.bashrc when the home directory is empty (fresh PVC).
  • Appends a managed block to ~/.bashrc with the NVM init lines and the customized PS1.
  • Downloads a global gitignore template and points git config --global core.excludesfile at it.
  • Installs NVM in ~/.nvm (if missing).
  • Installs the configured Node.js major version via NVM, marks it as default, and installs Yarn globally.

Configuration (environment variables):

Variable Default Description
NODE_MAJOR 24 Node.js major version installed via NVM.
NVM_VERSION 0.40.1 NVM installer version.
GITIGNORE_URL https://www.toptal.com/developers/gitignore/api/linux,jetbrains+all,visualstudio,visualstudiocode Global gitignore template URL.

Usage from a Coder template (in the workspace's startup_script):

# Use the defaults baked in the script
coder-init

# Or pin a Node.js version for this workspace
NODE_MAJOR=22 coder-init

Usage from a devcontainer, in .devcontainer/devcontainer.json:

{
  "image": "git.van-hemmen.com/actions/sindri:coder-latest",
  "remoteUser": "coder",
  "workspaceFolder": "/home/coder/Projects",
  "postCreateCommand": "coder-init"
}

The script refuses to run as root.

Desktop Bootstrap (coder-init-desktop)

Companion to coder-init, shipped only in the coder-xfce-vnc variant at /usr/local/bin/coder-init-desktop. Same contract: run as the workspace user, once per workspace start, idempotent. Refuses to run as root.

It covers per-user setup that doesn't make sense on the headless coder variant — currently:

  • Heals XFCE's preferred web browser when ~/.config/xfce4/helpers.rc is missing or points at a binary that no longer exists (common after a PVC carries over from an older image). Writes WebBrowser=firefox only when the existing value is invalid; never trampling a user who has deliberately chosen something else.
  • Parks a stale user-local Lens desktop entry (~/.local/share/applications/lens-desktop.desktop, renamed to .bak with a log line) when it launches the Lens binary directly and would therefore shadow the image's wrapper-routed entry forever (XDG_DATA_HOME outranks XDG_DATA_DIRS) — typically a leftover manual --no-sandbox fix from before the image handled this (see Electron & Chromium-based apps). Entries already pointing at the wrapper, or at anything else custom, are left untouched; the .bak breadcrumb makes recovery a one-rename affair if the workspace is ever rolled back to a pre-wrapper image.
  • Parks a stale user-local Claude Desktop entry under the same rules — typically left by a manual install from before the image shipped Claude Desktop, or carried on a long-lived PVC across the move from the community repack to Anthropic's official package. All three known entry names are checked (claude-desktop.desktop, claude-desktop-unofficial.desktop, com.anthropic.Claude.desktop). Entries whose Exec is an absolute path to either package's launcher or bundled Electron binary are renamed to .bak; wrapper-routed or custom entries are left alone — including Anthropic's own Exec=claude-desktop, whose bare command already resolves to the wrapper on PATH.

Usage from a Coder template — guard with command -v so the same template stays compatible with the headless coder variant:

/usr/local/bin/coder-init
if command -v coder-init-desktop >/dev/null 2>&1; then
  /usr/local/bin/coder-init-desktop
fi
if command -v start-xfce-vnc >/dev/null 2>&1; then
  nohup /usr/local/bin/start-xfce-vnc >/tmp/xfce-vnc.log 2>&1 &
fi

start-xfce-vnc runs tigervncserver + websockify and exec's into websockify, so it must be backgrounded from startup_script. It is also idempotent — re-invoking when port 6080 is already bound short-circuits with a friendly message rather than tearing the live session down.

Web Access Patterns

The coder-xfce-vnc variant is designed to work behind Coder's path-based app proxy (subdomain = false), which is the only option on a Coder OSS deployment without wildcard DNS. Two subtleties this image already handles:

  1. / returns a redirect, not 404. The Ubuntu novnc package ships vnc.html but no index.html. We install a tiny JS-based index.html at /usr/share/novnc/index.html that reads window.location.pathname, strips the filename, and redirects to vnc.html?autoconnect=1&resize=remote&path=<dir>/websockify. This means coder_app.url = "http://localhost:6080" (no path component) is sufficient — Coder lands the browser at the slug root, the script bounces it to the real entry point, and relative asset paths resolve correctly.

  2. The noVNC WebSocket goes under the slug, not to origin root. noVNC's path setting defaults to the literal string "websockify", not derived from window.location — so under any path-based proxy it would otherwise open wss://<host>/websockify (origin root) and miss the prefix entirely. The redirect script computes the correct path from the current URL and passes it via the ?path= query parameter.

If your Coder deployment has a Traefik / nginx / Envoy reverse proxy in front of it, make sure it forwards WebSocket Upgrade: headers unaltered — that's a deployment concern, not an image concern.

Software Rendering & Desktop Performance

The image targets non-privileged Kubernetes pods with no GPU and no /dev/dri, so all rendering goes through Mesa's llvmpipe software rasterizer. The image is configured for this from the start:

  • LIBGL_ALWAYS_SOFTWARE=1 is set as an ENV in the stage. Mesa skips the always-failing DRI probe and goes straight to llvmpipe. This shaves a noticeable beat off the startup of every GL app (browsers, IDEs, Chromium-based UIs).
  • libgbm1 is installed. Without it, Chromium/JCEF apps log "cannot create linux GL context" and fall through a slow error path. Installing it is the single biggest fix for the GL warning seen in JetBrains IDEs and Toolbox launches.
  • mesa-utils ships glxinfo so you can verify post-launch:
    glxinfo -B
    # OpenGL renderer string: llvmpipe (LLVM 20.x.x, 256 bits)
    

Electron & Chromium-based apps (Lens, Claude Desktop, VS Code, …)

Out of the box, Electron apps die instantly in an unprivileged Kubernetes pod running the RuntimeDefault seccomp profile — the hardened setup this image targets (Talos enables seccompDefault, as do PSS-restricted policies and many managed clusters; stock upstream kubelets default to Unconfined, where only cause 2 below applies). Lens crashed at startup with Failed to move to new namespace … Operation not permitted, and any other Electron app (a user-installed Claude Desktop, VS Code, Slack, …) fails identically. Two independent root causes were isolated, and the image handles both:

  1. The Chromium sandbox cannot work in such a pod — at all. Chromium's primary (layer-1) sandbox creates user/PID namespaces, which the pod's RuntimeDefault seccomp profile forbids for unprivileged processes. Chromium's fallback, the setuid-root chrome-sandbox helper, is equally dead: the pod's capability bounding set excludes CAP_SYS_ADMIN, and setuid root cannot re-gain a capability the bounding set dropped. Since no pod-safe configuration can make the sandbox functional, the image sets ELECTRON_DISABLE_SANDBOX=1 stage-wide (equivalent to --no-sandbox; honoured by every Electron app, propagated into the XFCE session and therefore into menu-launched apps). Isolation is provided by the container/pod boundary instead. Note that pure Chrome/Chromium browsers ignore this env var and would need an explicit --no-sandbox.

  2. The default 64 MiB /dev/shm of a Kubernetes pod is too small for Chromium at desktop resolutions. Chromium allocates its inter-process shared-memory transport buffers in /dev/shm; at 1920×1080 with software rendering it overruns 64 MiB. The symptom is delayed and misleading: the window opens, then renderers crash (reason: 'crashed', exitCode: 4 — blank/reloading UI) or the whole app aborts with GPU process isn't usable. Goodbye. (which looks GPU-related but is shm exhaustion). --disable-dev-shm-usage moves those buffers to /tmp, trading a sliver of IPC speed for stability.

What the image ships for Lens and Claude Desktop: every launch path of both apps is routed through a wrapper applying both fixes — /usr/local/bin/lens-desktop and /usr/local/bin/claude-desktop (shadowing the packages' /usr/bin launchers on PATH; the Lens wrapper targets the deb's update-alternatives entry point so package upgrades can't strand it) and desktop-entry overrides in /usr/local/share/applications/ (shadowing the packages' entries: XDG_DATA_DIRS resolves /usr/local/share first). The overrides are generated at image-build time from the entries the packages installed — Exec is rewritten (to the wrapper) and Categories is normalised to Development (so both land in the XFCE Development menu rather than upstream's Network / Utility), every other key stays in sync with upstream, and the build fails loudly if a package's entry changes shape. Terminal launches, XFCE menu launches, the Claude entry's New chat / New Claude Code session actions, and lens:// / claude:// URL activations all get the flags.

The Claude wrapper carries the whole load on its own: Anthropic's deb symlinks /usr/bin/claude-desktop straight to the bundled Electron binary, so unlike the community repack the image used previously there is no packaged shell launcher doing any environment setup behind it. The deb does ship a setuid-root chrome-sandbox helper and an AppArmor userns profile, but neither applies in an unprivileged pod (allowPrivilegeEscalation=false makes setuid a no-op, and loading AppArmor policy needs privileges the pod lacks) — ELECTRON_DISABLE_SANDBOX=1 remains the fix.

Nimbalyst is the same story with an AppImage twist. Upstream ships only a Linux AppImage, which would self-mount via FUSE — impossible here (FUSE's mount needs the same CAP_SYS_ADMIN the pod drops). So the image extracts it at build time (--appimage-extract, which uses the runtime's built-in squashfs unpacker — no FUSE, no /dev/fuse) to /opt/nimbalyst and ships /usr/local/bin/nimbalyst, a wrapper that adds both Electron fixes plus APPDIR=/opt/nimbalyst (the bundled AppRun's own AppDir auto-detection misfires when the first argument is a flag rather than a file). The releases/latest download URL means every build picks up the current Nimbalyst version automatically.

For other Electron apps (a user-installed VS Code, Slack, … — ordinary Electron apps behave exactly as described here): the sandbox half is already handled globally by the image env. If the app's UI goes blank or its renderer crash-loops under load, add --disable-dev-shm-usage to its launcher the same way the Lens and Claude Desktop wrappers do. Alternatively, solve the shm half for every app at once at the pod level by mounting a larger /dev/shm in the Coder template / pod spec:

volumes:
  - name: dshm
    emptyDir:
      medium: Memory
      sizeLimit: 1Gi
containers:
  - volumeMounts:
      - name: dshm
        mountPath: /dev/shm

(--disable-gpu turned out to be unnecessary for Electron apps once the shm issue is fixed — the GPU process falls back to SwiftShader software rendering on its own. The earlier GPU process isn't usable fatals were shm exhaustion, not GPU init.)

JetBrains Toolbox (2.x) specifics

Toolbox 2.x is a Compose Multiplatform + Skia application (not Chromium / not JCEF, despite earlier versions). A few non-obvious implications:

  • --disable-gpu is a no-op for Toolbox 2.x — it's a Chromium flag and Toolbox no longer uses Chromium. We pass it in the shipped .desktop entry anyway as a defensive hint for downstream tooling that scans Exec lines; it doesn't hurt and is silently ignored by Toolbox itself.
  • No CLI option disables the animated gradient background. The only switch is the in-UI toggle: ☰ Settings → "Use background effects" (introduced in Toolbox 2.4). The setting persists to ~/.local/share/JetBrains/Toolbox/.settings.json (PVC-backed; survives workspace rerolls). The exact JSON key is undocumented.
  • SKIKO_RENDER_API=SOFTWARE is an environment variable that can help. It tells Skiko to skip the OpenGL backend and rasterize Skia directly to CPU, removing one indirection (Skiko → OpenGL → llvmpipe → CPU becomes Skiko → CPU). It is not set by default because results vary; try setting it for Toolbox if the UI feels sluggish:
    env SKIKO_RENDER_API=SOFTWARE /opt/jetbrains-toolbox/bin/jetbrains-toolbox
    
  • For each JetBrains IDE installed via Toolbox, after first launch open Help → Edit Custom VM Options and add:
    -Dsun.java2d.opengl=false
    -Dide.browser.jcef.gpu.disable=true
    
    The first uses Java2D's hand-tuned software path instead of routing Java2D through OpenGL→llvmpipe. The second stops JCEF (the Chromium engine the IDEs do still embed for the welcome screen, Markdown preview, AI Assistant, etc.) from compositing on a non-existent GPU. Both settings persist per-IDE in the PVC.

State that persists across workspace rerolls

The PVC mounts at /home/coder, so the following are preserved automatically:

App State location
Firefox ~/.mozilla/firefox/ (profiles, add-ons, bookmarks, passwords)
JetBrains Toolbox ~/.local/share/JetBrains/Toolbox/, ~/.config/JetBrains/
Claude Desktop ~/.config/Claude/ (login, settings, MCP config)
Nimbalyst ~/.config/@nimbalyst/ (login, settings, sessions, MCP config)
XFCE ~/.config/xfce4/ (panel layout, preferred apps, etc.)
TigerVNC ~/.vnc/ (xstartup, password if set, session logs)

Building Locally

# Build CI variant
docker build --target ci -t git.van-hemmen.com/actions/sindri:ci-dev .

# Build coder variant
docker build --target coder -t git.van-hemmen.com/actions/sindri:coder-dev .

# Build XFCE/noVNC coder variant
docker build --target coder-xfce-vnc -t git.van-hemmen.com/actions/sindri:coder-xfce-vnc-dev .

# Build coder variant with a custom Java version
docker build --target coder \
  --build-arg AZUL_JAVA_MAJOR=17 \
  -t git.van-hemmen.com/actions/sindri:coder-java17 .

CI/CD Workflows

Forgejo Actions workflows automate multi-target builds:

  • docker-dev.yaml: Builds all targets on branch commits
  • docker-tag.yaml: Builds and publishes versioned releases on tags

The workflows use the KANIKO_TARGET variable to build each variant:

strategy:
  matrix:
    target: [ ci, coder, coder-xfce-vnc ]
env:
  KANIKO_TARGET: ${{ matrix.target }}

Choosing the Right Variant

Use Case Recommended Variant
CI/CD pipeline with Node.js ci-*
GitHub/Forgejo Actions ci-*
Custom base for your own image ci-*
VS Code Remote Containers coder-*
Coder.com workspace coder-*
GitHub Codespaces coder-*
Local Node.js development coder-*
Browser-based Linux desktop workspace coder-xfce-vnc-*
Graphical tools in a remote workspace coder-xfce-vnc-*
JetBrains IDEs running inside the workspace (not Gateway) coder-xfce-vnc-*
Firefox in a remote workspace coder-xfce-vnc-*

Version Information

  • Base OS: Ubuntu 24.04 LTS
  • Java: Azul Zulu JDK, configurable at build time, default 21
  • Firebase CLI: firebase-tools standalone binary, installed in the base layer (available in all variants)
  • Node.js: LTS in the ci variant; installed via NVM at workspace start in the coder variants by scripts/coder-init.sh (default Node 24)
  • Default Timezone: Europe/Paris, configurable
  • Coder User: coder, UID/GID 1000 by default
  • Coder Project Directory: /home/coder/Projects
  • noVNC Port: 6080 (websockify, all interfaces) in the coder-xfce-vnc variant
  • VNC Port: 5901 (loopback only) in the coder-xfce-vnc variant
  • Default Desktop Resolution: 1920x1080 × 24-bit (override with VNC_GEOMETRY / VNC_DEPTH)
  • GUI Apps (xfce-vnc variant): Firefox (Mozilla deb), JetBrains Toolbox (/opt/jetbrains-toolbox), Lens (official APT repo, launched via the /usr/local/bin/lens-desktop wrapper), Claude Desktop (Anthropic's official APT repo, launched via the /usr/local/bin/claude-desktop wrapper)

License

Apache License 2.0 - See LICENSE file for details.

Contributing

See CONTRIBUTING.md for guidelines on how to contribute to this project.

Code of Conduct

This project follows a Code of Conduct. Please read CODE_OF_CONDUCT.md before contributing.