1
0

Compare commits

...

17 Commits

Author SHA256 Message Date
Ana Guerrero
e0eaa54784 Accepting request 1234391 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1234391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rmt-server-image?expand=0&rev=29
2025-01-02 18:21:59 +00:00
557fb129b4 [info=764581a12ebfaeb4ec84ebabfca98608]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=266
2025-01-01 14:19:21 +00:00
Ana Guerrero
c7b7f6e314 Accepting request 1228031 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1228031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rmt-server-image?expand=0&rev=28
2024-12-03 19:47:56 +00:00
e5874f04ac [info=9a5327a2c7d1c55a94c2634bbf1eb9f1]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=259
2024-12-03 13:54:50 +00:00
Dominique Leuenberger
cb8785ee81 Accepting request 1219938 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1219938
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rmt-server-image?expand=0&rev=27
2024-11-01 20:05:27 +00:00
5b9a275756 [info=6a7add0bf9d09dd9bb9f8bec56a65547]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=244
2024-10-31 16:30:31 +00:00
Dominique Leuenberger
77e76f281d Accepting request 1219687 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1219687
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rmt-server-image?expand=0&rev=26
2024-10-30 21:58:20 +00:00
Dominique Leuenberger
04f9913e79 Accepting request 1219603 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1219603
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rmt-server-image?expand=0&rev=25
2024-10-30 16:43:40 +00:00
ce9830e206 [info=1465949623350034b72e2255a732fb42]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=242
2024-10-30 15:43:01 +00:00
e1125062db [info=e4821ff3bf78b71589964c995a6ee8d9]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=241
2024-10-30 12:54:23 +00:00
Dominique Leuenberger
8dcb168ec0 Accepting request 1207290 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1207290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rmt-server-image?expand=0&rev=24
2024-10-14 11:20:54 +00:00
577c1b5ca0 [info=15cdc9084f76e3e60c798511ce339dd9]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=232
2024-10-11 15:28:44 +00:00
Ana Guerrero
6688dcfa6a Accepting request 1203656 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1203656
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rmt-server-image?expand=0&rev=23
2024-09-25 19:57:50 +00:00
22533f29d2 [info=421fe8dfd55dc0e029f30115cbe52b16]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=223
2024-09-25 17:59:24 +00:00
6020e4d4d6 [info=c24cc2938bc2ebb6d540c952240e2f42]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=222
2024-09-25 17:20:17 +00:00
Ana Guerrero
378fd5f0b0 Accepting request 1200625 from devel:BCI:Tumbleweed
🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1200625
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rmt-server-image?expand=0&rev=22
2024-09-12 14:58:30 +00:00
8386ae3cb2 [info=487bc1f93965811a55a3249e81803aa4]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/rmt-server-image?expand=0&rev=207
2024-09-12 10:47:30 +00:00
4 changed files with 78 additions and 14 deletions

View File

@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -13,18 +13,21 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
# You can contact the BCI team via https://github.com/SUSE/bci/discussions
#!UseOBSRepositories
#!BuildTag: opensuse/rmt-server:%%rmt_version%%
#!BuildTag: opensuse/rmt-server:%%rmt_version%%-%RELEASE%
#!BuildTag: opensuse/rmt-server:%%rmt_version%%
#!BuildTag: opensuse/rmt-server:latest
FROM opensuse/tumbleweed:latest
RUN set -euo pipefail; zypper -n in --no-recommends rmt-server catatonit; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
RUN set -euo pipefail; \
zypper -n install --no-recommends rmt-server catatonit bash; \
zypper -n clean; \
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=org.opensuse.application.rmt-server
LABEL org.opencontainers.image.authors="openSUSE (https://www.opensuse.org/)"
LABEL org.opencontainers.image.title="openSUSE Tumbleweed SUSE RMT server"
LABEL org.opencontainers.image.description="SUSE RMT server container based on the openSUSE Tumbleweed Base Container Image."
LABEL org.opencontainers.image.version="%%rmt_version%%"

View File

@ -1,7 +1,7 @@
<services>
<service mode="buildtime" name="docker_label_helper"/>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service name="replace_using_package_version" mode="buildtime">
<service mode="buildtime" name="replace_using_package_version">
<param name="file">Dockerfile</param>
<param name="regex">%%rmt_version%%</param>
<param name="package">rmt-server</param>

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
# PV could be empty, make sure the directories exist
@ -23,30 +23,46 @@ MYSQL_USER="${MYSQL_USER:-rmt}"
SCC_SYNC="${SCC_SYNC:-true}"
# Create adjusted /etc/rmt.conf
echo -e "database:\n host: ${MYSQL_HOST}\n database: ${MYSQL_DATABASE}\n username: ${MYSQL_USER}\n password: ${MYSQL_PASSWORD}" > /etc/rmt.conf
echo -e " adapter: mysql2\n encoding: utf8\n timeout: 5000\n pool: 5\n" >> /etc/rmt.conf
echo -e "scc:\n username: ${SCC_USERNAME}\n password: ${SCC_PASSWORD}\n sync_systems: true\n scc_sync: ${SCC_SYNC}\n" >> /etc/rmt.conf
echo -e "log_level:\n rails: debug" >> /etc/rmt.conf
cat > /etc/rmt.conf <<EOF
database:
host: ${MYSQL_HOST}
database: ${MYSQL_DATABASE}
username: ${MYSQL_USER}
password: ${MYSQL_PASSWORD}
adapter: mysql2
encoding: utf8
timeout: 5000
pool: 5
scc:
username: ${SCC_USERNAME}
password: ${SCC_PASSWORD}
sync_systems: true
scc_sync: ${SCC_SYNC}
log_level:
rails: debug
EOF
if [ $# -eq 0 ]; then
set -- /usr/share/rmt/bin/rails server -e production
fi
if [ "$1" == "/usr/share/rmt/bin/rails" -a "$2" == "server" ]; then
if [ "$1" = "/usr/share/rmt/bin/rails" ] && [ "$2" = "server" ]; then
echo "Create/migrate SUSE RMT database"
pushd /usr/share/rmt > /dev/null
/usr/share/rmt/bin/rails db:create db:migrate RAILS_ENV=production
popd > /dev/null
if [ ${SCC_SYNC} == "true" ]; then
if [ "${SCC_SYNC}" = "true" ]; then
echo "Syncing product list"
rmt-cli sync
for PRODUCT in $SCC_PRODUCT_ENABLE
do
rmt-cli products enable $PRODUCT
rmt-cli products enable "$PRODUCT"
done
for PRODUCT in $SCC_PRODUCT_DISABLE
do
rmt-cli products disable $PRODUCT
rmt-cli products disable "$PRODUCT"
done
rmt-cli repos clean
fi

View File

@ -1,3 +1,48 @@
-------------------------------------------------------------------
Wed Jan 1 14:13:48 UTC 2025 - SUSE Update Bot <bci-internal@suse.de>
- update copyright year
-------------------------------------------------------------------
Tue Dec 3 13:26:37 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
- Change attribute order in _service
-------------------------------------------------------------------
Thu Oct 31 16:24:36 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
- entry point refactoring
-------------------------------------------------------------------
Wed Oct 30 15:34:45 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
- remove nonsensical org.opencontainers.image.authors - duplication of .vendor
-------------------------------------------------------------------
Wed Oct 30 12:48:04 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
- Add missing space to rmt.conf, fixes bsc#1230404
-------------------------------------------------------------------
Fri Oct 11 15:12:52 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
- make the tag with -%RELEASE% the first tag listed
-------------------------------------------------------------------
Wed Sep 25 17:36:16 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- rerender installation step in multiple lines, allow uninstalling optional packages
-------------------------------------------------------------------
Wed Sep 25 17:12:11 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- improved log cleaning
-------------------------------------------------------------------
Thu Sep 12 10:37:22 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- set useobsrepositories explicitly
-------------------------------------------------------------------
Sun Aug 18 13:32:24 UTC 2024 - Dirk Mueller <dmueller@suse.com>