docker: set image.source label to GitHub mirror for ghcr.io linking
Adds (Dockerfile) and updates (coraza-spoa/Dockerfile) the OCI image.source label to point at github.com/shadowdao/haproxy-manager-base. ghcr.io auto-links a package to a GitHub repo when this label resolves to a github.com URL whose owner+name match the package's owner — that makes the published packages show up on the GitHub repo sidebar and inherit its collaborator settings. Gitea's registry ignores image.source, so changing the value away from the previous Gitea URL costs nothing on that side. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -9,6 +9,16 @@
|
|||||||
# docker push repo.anhonesthost.net/cloud-hosting-platform/python:3.12-slim
|
# docker push repo.anhonesthost.net/cloud-hosting-platform/python:3.12-slim
|
||||||
# Future improvement: a scheduled Gitea Action that does the above automatically.
|
# Future improvement: a scheduled Gitea Action that does the above automatically.
|
||||||
FROM repo.anhonesthost.net/cloud-hosting-platform/python:3.12-slim
|
FROM repo.anhonesthost.net/cloud-hosting-platform/python:3.12-slim
|
||||||
|
|
||||||
|
# image.source is what ghcr.io uses to link the package to a GitHub repo
|
||||||
|
# sidebar; pointing at the public GitHub mirror enables that linking. The
|
||||||
|
# canonical source-of-truth git remote is still Gitea, but Gitea's registry
|
||||||
|
# doesn't consume this label, so there's no contention.
|
||||||
|
LABEL org.opencontainers.image.title="haproxy-manager-base" \
|
||||||
|
org.opencontainers.image.description="HAProxy management API with Let's Encrypt automation, Coraza WAF integration, and template-driven config" \
|
||||||
|
org.opencontainers.image.source="https://github.com/shadowdao/haproxy-manager-base" \
|
||||||
|
org.opencontainers.image.licenses="MIT"
|
||||||
|
|
||||||
RUN apt update -y && apt dist-upgrade -y && apt install socat haproxy cron certbot curl jq net-tools -y && apt clean && rm -rf /var/lib/apt/lists/*
|
RUN apt update -y && apt dist-upgrade -y && apt install socat haproxy cron certbot curl jq net-tools -y && apt clean && rm -rf /var/lib/apt/lists/*
|
||||||
WORKDIR /haproxy
|
WORKDIR /haproxy
|
||||||
COPY ./templates /haproxy/templates
|
COPY ./templates /haproxy/templates
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ FROM gcr.io/distroless/static-debian12:nonroot
|
|||||||
|
|
||||||
LABEL org.opencontainers.image.title="coraza-spoa-whp" \
|
LABEL org.opencontainers.image.title="coraza-spoa-whp" \
|
||||||
org.opencontainers.image.description="Coraza WAF SPOA agent configured for WHP haproxy-manager integration" \
|
org.opencontainers.image.description="Coraza WAF SPOA agent configured for WHP haproxy-manager integration" \
|
||||||
org.opencontainers.image.source="https://repo.anhonesthost.net/cloud-hosting-platform/haproxy-manager-base"
|
org.opencontainers.image.source="https://github.com/shadowdao/haproxy-manager-base" \
|
||||||
|
org.opencontainers.image.licenses="MIT"
|
||||||
|
|
||||||
COPY --from=build /out/coraza-spoa /coraza-spoa
|
COPY --from=build /out/coraza-spoa /coraza-spoa
|
||||||
COPY config.yaml /etc/coraza-spoa/config.yaml
|
COPY config.yaml /etc/coraza-spoa/config.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user