Skip to content

Commit

Permalink
Merge pull request #8144 from cbosdo/containers-tagging
Browse files Browse the repository at this point in the history
Fix the reference label in container images
  • Loading branch information
deneb-alpha authored Jan 12, 2024
2 parents f346641 + 358913d commit f6ea17d
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 11 deletions.
6 changes: 4 additions & 2 deletions containers/hub-xmlrpc-api-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ ARG REFERENCE_PREFIX="registry.opensuse.org/uyuni"

# Build Service required labels
# labelprefix=org.opensuse.uyuni.hub-xmlrpc-api
LABEL org.opencontainers.image.name=hub-xmlrpc-api-image
LABEL org.opencontainers.image.title="${PRODUCT} Hub XML-RPC API container"
LABEL org.opencontainers.image.description="${PRODUCT} Hub XML-RPC API image"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="${VENDOR}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.version="5.0.0"
LABEL org.opencontainers.image.version=5.0.0
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/server:5.0.0.%RELEASE%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/hub-xmlrpc-api:${PRODUCT_VERSION}.%RELEASE%"
# endlabelprefix
LABEL org.uyuni.version="${PRODUCT_VERSION}"

CMD ["/usr/bin/hub-xmlrpc-api"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Use product version in reference label
- Add missing image name label
2 changes: 1 addition & 1 deletion containers/init-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ LABEL org.opencontainers.image.vendor="${VENDOR}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.version=5.0.1
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/init:5.0.1.%RELEASE%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/init:${PRODUCT_VERSION}.%RELEASE%"
# endlabelprefix

HEALTHCHECK --interval=5s --timeout=5s --retries=5 CMD ["/usr/bin/systemctl", "is-active", "multi-user.target"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Use product version in reference label
- Fix the container version labels
3 changes: 2 additions & 1 deletion containers/proxy-httpd-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.name=proxy-httpd-image
LABEL org.opencontainers.image.version=5.0.0
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-httpd:5.0.0.%RELEASE%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-httpd:${PRODUCT_VERSION}.%RELEASE%"
# endlabelprefix
LABEL org.uyuni.version="${PRODUCT_VERSION}"

# http(s)
EXPOSE 80/tcp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Use product version in reference label
3 changes: 2 additions & 1 deletion containers/proxy-salt-broker-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.name=proxy-salt-broker-image
LABEL org.opencontainers.image.version=5.0.0
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-salt-broker:5.0.0.%RELEASE%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-salt-broker:${PRODUCT_VERSION}.%RELEASE%"
# endlabelprefix
LABEL org.uyuni.version="${PRODUCT_VERSION}"

# Salt
EXPOSE 4505/tcp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Use product version in reference label
3 changes: 2 additions & 1 deletion containers/proxy-squid-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.name=proxy-squid-image
LABEL org.opencontainers.image.version=5.0.0
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-squid:5.0.0.%RELEASE%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-squid:${PRODUCT_VERSION}.%RELEASE%"
# endlabelprefix
LABEL org.uyuni.version="${PRODUCT_VERSION}"

# Squid
EXPOSE 8080/tcp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Use product version in reference label
3 changes: 2 additions & 1 deletion containers/proxy-ssh-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.name=proxy-ssh-image
LABEL org.opencontainers.image.version=5.0.0
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-ssh:5.0.0.%RELEASE%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-ssh:${PRODUCT_VERSION}.%RELEASE%"
# endlabelprefix
LABEL org.uyuni.version="${PRODUCT_VERSION}"

# SSH port
EXPOSE 22
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Use product version in reference label
3 changes: 2 additions & 1 deletion containers/proxy-tftpd-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.name=proxy-tftpd-image
LABEL org.opencontainers.image.version=5.0.0
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-tftpd:5.0.0.%RELEASE%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/proxy-tftpd:${PRODUCT_VERSION}.%RELEASE%"
# endlabelprefix
LABEL org.uyuni.version="${PRODUCT_VERSION}"

# tftp
EXPOSE 69/udp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Use product version in reference label
3 changes: 2 additions & 1 deletion containers/server-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ LABEL org.opencontainers.image.vendor="${VENDOR}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.version=5.0.0
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/server:5.0.0.%RELEASE%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/server:${PRODUCT_VERSION}.%RELEASE%"
# endlabelprefix
LABEL org.uyuni.version="${PRODUCT_VERSION}"

CMD ["/usr/lib/systemd/systemd"]
HEALTHCHECK --interval=5s --timeout=5s --retries=5 CMD ["/usr/bin/systemctl", "is-active", "multi-user.target"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Use product version in reference label
5 changes: 3 additions & 2 deletions containers/server-migration-14-16-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ ARG REFERENCE_PREFIX="registry.opensuse.org/uyuni"

# Build Service required labels
# labelprefix=org.opensuse.uyuni.server-migration-14-16
LABEL org.opencontainers.image.name=server-migration-image
LABEL org.opencontainers.image.name=server-migration-14-16-image
LABEL org.opencontainers.image.title="${PRODUCT} server migration container"
LABEL org.opencontainers.image.description="${PRODUCT} server migration image"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="${VENDOR}"
LABEL org.opencontainers.image.url="${URL}"
LABEL org.opencontainers.image.version=5.0.0
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/server-migration:5.0.0.%RELEASE%"
LABEL org.opensuse.reference="${REFERENCE_PREFIX}/server-migration:${PRODUCT_VERSION}.%RELEASE%"
# endlabelprefix
LABEL org.uyuni.version="${PRODUCT_VERSION}"

Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Use product version in reference label

0 comments on commit f6ea17d

Please sign in to comment.