Add container support (Containerfile, just recipe, smoke test) #2

Merged
drawblank merged 1 commit from containerize into main 2026-09-23 14:28:40 +00:00
Owner

Summary

Containerise slopbridge with Podman: a multi-stage build image plus a Windows-side smoke test.

Changes

  • Containerfile: multi-stage — archlinux:base-devel build stage (clang + llvm + mold + meson + ninja) using native.ini, and a minimal archlinux:base runtime with only curl/openssl/ca-certificates.
  • .containerignore: keep .git and build* out of the build context (checked-out submodules are still copied).
  • justfile: just container recipe (and image alias) to build the image via podman.exe from WSL.
  • scripts/test-container.ps1: smoke-tests the image from Windows PowerShell (checks it runs and prints the expected usage).

Verification

  • Image builds: localhost/slopbridge:latest (~441 MB).
  • just container rebuilds from cache cleanly.
  • test-container.ps1 (run outside WSL) reports PASS.
## Summary Containerise slopbridge with Podman: a multi-stage build image plus a Windows-side smoke test. ## Changes - **Containerfile**: multi-stage — `archlinux:base-devel` build stage (clang + llvm + mold + meson + ninja) using `native.ini`, and a minimal `archlinux:base` runtime with only curl/openssl/ca-certificates. - **.containerignore**: keep `.git` and `build*` out of the build context (checked-out submodules are still copied). - **justfile**: `just container` recipe (and `image` alias) to build the image via `podman.exe` from WSL. - **scripts/test-container.ps1**: smoke-tests the image from Windows PowerShell (checks it runs and prints the expected usage). ## Verification - Image builds: `localhost/slopbridge:latest` (~441 MB). - `just container` rebuilds from cache cleanly. - `test-container.ps1` (run outside WSL) reports PASS.
- Add a multi-stage Containerfile (archlinux:base-devel build -> archlinux:base
  runtime) that builds with the LLVM toolchain via native.ini
- Add .containerignore to keep build artifacts and .git out of the build context
- Add `just container` recipe (and `image` alias) to build the image
- Add scripts/test-container.ps1 to smoke-test the image from Windows
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
slopnode/bridge!2
No description provided.