- Replace ~/var/lib/homelab/<app> with ../../var/lib/homelab/<app> in gitea and gitea_runner compose files so docker compose resolves state without HOME - Remove inert HOMELAB_STATE_ROOT from gitea_runner/.env-example and update gitea_runner/README.md - Rebase gitea_runner/Dockerfile on gitea/act_runner:latest with Alpine nodejs/git/bash/coreutils, regular-file /etc/nix/nix.conf, pinned nixos/nix:2.24.12 store, and entrypoint-nix.sh auto-seed wrapper
24 lines
834 B
Docker
24 lines
834 B
Docker
FROM nixos/nix:2.24.12 AS nix-src
|
|
RUN tar -czf /nix-seed.tar.gz -C /nix .
|
|
|
|
FROM gitea/act_runner:latest
|
|
|
|
RUN apk add --no-cache nodejs npm bash git coreutils ca-certificates
|
|
|
|
# Regular file (never a symlink into /nix/store) so nix-store volume mounts cannot break it
|
|
RUN mkdir -p /etc/nix /nix && \
|
|
printf '%s\n' \
|
|
'sandbox = false' \
|
|
'experimental-features = nix-command flakes' \
|
|
'trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=' \
|
|
> /etc/nix/nix.conf
|
|
|
|
COPY --from=nix-src /nix /nix
|
|
COPY --from=nix-src /nix-seed.tar.gz /opt/nix-seed.tar.gz
|
|
COPY entrypoint-nix.sh /usr/local/bin/entrypoint-nix.sh
|
|
RUN chmod +x /usr/local/bin/entrypoint-nix.sh
|
|
|
|
ENV PATH="/usr/local/bin:/nix/var/nix/profiles/default/bin:/usr/bin:/bin"
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint-nix.sh"]
|