From 26ef937a9aa5e8483810d540e1693d8b31b4614179861f127487f4d486a92206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 23 Nov 2022 09:33:51 +0000 Subject: [PATCH] [info=83b471d6c291d6040f677f2233d230da] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=4 --- Dockerfile | 12 ++++++------ _service | 7 ++++++- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8e76469..6e2e96e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ # SPDX-License-Identifier: MIT -#!BuildTag: opensuse/rmt-server:2.8 +#!BuildTag: opensuse/rmt-server:%%rmt_version%% #!BuildTag: opensuse/rmt-server:latest -#!BuildTag: opensuse/rmt-server:2.8-%RELEASE% +#!BuildTag: opensuse/rmt-server:%%rmt_version%%-%RELEASE% + FROM opensuse/tumbleweed:latest MAINTAINER openSUSE (https://www.opensuse.org/) @@ -10,21 +11,20 @@ MAINTAINER openSUSE (https://www.opensuse.org/) # labelprefix=org.opensuse.application.rmt-server LABEL org.opencontainers.image.title="openSUSE Tumbleweed RMT Server Container Image" LABEL org.opencontainers.image.description="SUSE RMT Server based on the SLE Base Container Image." -LABEL org.opencontainers.image.version="2.8" +LABEL org.opencontainers.image.version="%%rmt_version%%" LABEL org.opencontainers.image.url="https://www.opensuse.org" LABEL org.opencontainers.image.created="%BUILDTIME%" LABEL org.opencontainers.image.vendor="openSUSE Project" -LABEL org.opensuse.reference="registry.opensuse.org/opensuse/rmt-server:2.8-%RELEASE%" +LABEL org.opensuse.reference="registry.opensuse.org/opensuse/rmt-server:%%rmt_version%%-%RELEASE%" LABEL org.openbuildservice.disturl="%DISTURL%" LABEL com.suse.release-stage="released" # endlabelprefix - RUN set -euo pipefail; zypper -n in --no-recommends rmt-server catatonit; zypper -n clean; rm -rf /var/log/* - ENV RAILS_ENV="production" ENV LANG="en" + ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] CMD ["/usr/share/rmt/bin/rails", "server", "-e", "production"] COPY entrypoint.sh /usr/local/bin/entrypoint.sh diff --git a/_service b/_service index 52b4539..763c971 100644 --- a/_service +++ b/_service @@ -1,5 +1,10 @@ - + + Dockerfile + %%rmt_version%% + rmt-server + minor + \ No newline at end of file