| 123456789101112131415161718192021222324252627282930313233 |
- # usmrad — Rapid Application Deployment supervisor image.
- #
- # Build context: the repo root (nothing local is required — USM and usmrad
- # both arrive via the hosted installer, which bundles usmrad):
- #
- # podman build -f containers/usmrad/Containerfile -t usmrad .
- #
- # bash is required by usm scripts, git by usmrad at runtime, and curl +
- # ca-certificates for https fetches. The installer auto-detects apk on PATH,
- # wires the usm-spm-apk helper plus the lib libdir into the generated
- # usm.config, and shims both usm and usmrad into /usr/bin.
- #
- # The system is enrolled and the web-stack repository added at build time so
- # its packages (statum, astralis, inversion, the invercargill libraries, …)
- # resolve immediately; USMRAD_USM_REPOS adds further repositories at runtime.
- #
- # Run pattern:
- #
- # podman run --rm \
- # -e USMRAD_REPO=https://git.example/my-app.git \
- # -e USMRAD_BRANCH=main \
- # -e USMRAD_POLL=1 \
- # -v ./data:/app/pwd \
- # usmrad my-app --port 8080
- FROM alpine:latest
- RUN apk add --no-cache bash git curl ca-certificates
- RUN curl -fsSL https://packages.astrologue.nz/install-usm.sh -o /tmp/install-usm.sh \
- && bash /tmp/install-usm.sh -y \
- && rm /tmp/install-usm.sh
- RUN usm enroll -y \
- && usm add-repo -y https://packages.astrologue.nz/repo/web-stack/repo.usmr
- ENTRYPOINT ["usmrad"]
|