Migrate teslamate to native Dagger container.py (#333)
## Summary - Replace legacy Dockerfile with native Dagger `container.py` build - Two-stage pipeline: Elixir+Node builder, Debian slim runtime - Uses shared helpers (`clone_from_forge`, `oci_labels`) - Delete old Dockerfile (pipeline auto-discovers container.py) - Update build-container-image docs and mark service reviewed ## Test plan - [x] `dagger call build --src=. --container-name=teslamate` succeeds locally - [ ] CI container build passes - [ ] Deploy from branch and verify teslamate starts cleanly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: #333
This commit is contained in:
parent
4ca0630d76
commit
08c698e833
5 changed files with 108 additions and 87 deletions
|
|
@ -129,7 +129,7 @@ Existing containers demonstrate several build approaches:
|
|||
| Native Dagger (Go + Node) | [[#navidrome]] | `container.py` with helper functions — preferred for new containers |
|
||||
| Alpine package install | [[#transmission]] | Simplest Dockerfile — install from apk |
|
||||
| Go from source | [[#miniflux]] | Dockerfile: clone upstream, `go build` |
|
||||
| Multi-stage Elixir | [[#teslamate]] | Dockerfile: Elixir release with Node assets |
|
||||
| Native Dagger (Elixir + Node) | [[#teslamate]] | `container.py` with Debian runtime — Elixir release with Node assets |
|
||||
| Runtime tarball download | [[#kiwix-serve]] | Dockerfile: download pre-built binary with arch detection |
|
||||
| Nix `dockerTools` | [[#ntfy-nix]] | `buildLayeredImage` with nix-built app (ringtail runner) |
|
||||
|
||||
|
|
@ -147,7 +147,7 @@ Existing containers demonstrate several build approaches:
|
|||
|
||||
### teslamate
|
||||
|
||||
`containers/teslamate/Dockerfile` — Two-stage Elixir build with Node.js asset compilation. Uses Debian-based images due to Elixir/OTP dependencies. (Legacy Dockerfile — migrate to `container.py` during review.)
|
||||
`containers/teslamate/container.py` — Native Dagger build. Two-stage pipeline: Elixir builder with Node.js for asset compilation, Debian slim runtime. Uses Debian-based images (not Alpine) due to Elixir/OTP dependencies. Includes entrypoint script for pg-wait and migrations.
|
||||
|
||||
### kiwix-serve
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue