Commit f68ab0f
fix(container): repair Containerfile build rot + add runtime.exs for env config
The container/Containerfile build was broken end-to-end; six fixes make
`podman build -f container/Containerfile` succeed and produce a runnable REST image:
1. .dockerignore excluded scripts/fetch-cartridges.sh (needed by COPY) and
schemas/cartridge-v1.json (Catalog schema mirror) — un-ignored both.
2. Pin Zig to 0.15.1 (.tool-versions) instead of unpinned `apk add zig`, which
pulled a newer Zig that removed std.heap.GeneralPurposeAllocator.
3. Elixir builder cgr.dev/chainguard/elixir:latest is now 403/auth-gated →
public docker.io/elixir:1.18.4-otp-25.
4. Runtime base cgr.dev/chainguard/wolfi-base lost gcompat/ncurses-libs and its
OpenSSL 3 breaks the OTP-25 crypto NIF (needs libcrypto.so.1.1) →
debian:bullseye-slim (matches builder ABI).
5. COPY schemas/cartridge-v1.json into /schemas (Catalog requires it at boot).
6. Strip multi-GB .zig-cache from the cartridge tree before the runtime COPY
(was exhausting build disk).
Plus config/runtime.exs so BOJ_PORT / BOJ_BIND_IP / BOJ_CARTRIDGES_ROOT are read
at release boot, not baked at compile time — fixes the listener binding to
127.0.0.1 (unreachable via port-map) and cartridges_loaded:0 (baked build-path).
Deployed and verified live on Hetzner: /health returns 200.
Refs #271, #272.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent ed5c741 commit f68ab0f
3 files changed
Lines changed: 34 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
80 | | - | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| |||
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
93 | | - | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | | - | |
| 103 | + | |
97 | 104 | | |
98 | 105 | | |
99 | 106 | | |
| |||
144 | 151 | | |
145 | 152 | | |
146 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
147 | 157 | | |
148 | 158 | | |
149 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments