-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packaging: add opencontainers image labels (#3251)
Add [opencontainer image labels](https://github.com/opencontainers/image-spec/blob/main/annotations.md) (except org.opencontainers.image.created) to multiarch image. Decided not touch Dockerfile.arm* because it is better to unify them with Dockerfile (see e.g. #2566). Github action already adds opencontainer image labels: ```console docker inspect ghcr.io/zalando/skipper:v0.21.209 | jq .[0].Config.Labels { "maintainer": "Team Gateway&Proxy @ Zalando SE <[email protected]>", "org.opencontainers.image.created": "2024-09-26T09:40:09.452Z", "org.opencontainers.image.description": "An HTTP router and reverse proxy for service composition, including use cases like Kubernetes Ingress", "org.opencontainers.image.licenses": "NOASSERTION", "org.opencontainers.image.revision": "08a295f2cbf443d5d87f680d6ba3335fba57daef", "org.opencontainers.image.source": "https://github.com/zalando/skipper", "org.opencontainers.image.title": "skipper", "org.opencontainers.image.url": "https://github.com/zalando/skipper", "org.opencontainers.image.version": "v0.21.209" } ``` This change also fixes licenses and adds vendor label. Signed-off-by: Alexander Yastrebov <[email protected]>
- Loading branch information
1 parent
08a295f
commit 05362a0
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
ARG BASE_IMAGE=default | ||
FROM registry.opensource.zalan.do/library/alpine-3:latest AS default | ||
FROM ${BASE_IMAGE} | ||
|
||
ARG VERSION | ||
ARG REVISION | ||
|
||
LABEL maintainer="Team Gateway&Proxy @ Zalando SE <[email protected]>" | ||
LABEL org.opencontainers.image.title=skipper | ||
LABEL org.opencontainers.image.description="An HTTP router and reverse proxy for service composition, including use cases like Kubernetes Ingress" | ||
LABEL org.opencontainers.image.version=$VERSION | ||
LABEL org.opencontainers.image.url=https://github.com/zalando/skipper | ||
LABEL org.opencontainers.image.licenses=Apache-2.0 | ||
LABEL org.opencontainers.image.vendor="Zalando SE" | ||
LABEL org.opencontainers.image.source=https://github.com/zalando/skipper | ||
LABEL org.opencontainers.image.revision=$REVISION | ||
|
||
RUN apk --no-cache add ca-certificates && update-ca-certificates | ||
RUN mkdir -p /usr/bin | ||
ARG BUILD_FOLDER=build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters