Compare commits

..

No commits in common. "factory" and "devel" have entirely different histories.

5 changed files with 13 additions and 62 deletions

View File

@ -31,7 +31,7 @@ Then you can start the container with the following command:
```bash ```bash
podman run -d --restart=always -p 5000:5000 -v /path/to/config.yml:/etc/registry/config.yml \ podman run -d --restart=always -p 5000:5000 -v /path/to/config.yml:/etc/registry/config.yml \
-v /var/lib/docker-registry:/var/lib/docker-registry --name registry registry.opensuse.org/opensuse/registry:2.8 -v /var/lib/docker-registry:/var/lib/docker-registry --name registry registry.opensuse.org/opensuse/registry:%%registry_version%%-%RELEASE%
``` ```
The registry is available at `http://localhost:5000`. To keep the registry running after a reboot, create a systemd service as follows: The registry is available at `http://localhost:5000`. To keep the registry running after a reboot, create a systemd service as follows:

View File

@ -1,7 +1,7 @@
<services> <services>
<service mode="buildtime" name="kiwi_label_helper"/> <service mode="buildtime" name="kiwi_label_helper"/>
<service mode="buildtime" name="kiwi_metainfo_helper"/> <service mode="buildtime" name="kiwi_metainfo_helper"/>
<service mode="buildtime" name="replace_using_package_version"> <service name="replace_using_package_version" mode="buildtime">
<param name="file">distribution-image.kiwi</param> <param name="file">distribution-image.kiwi</param>
<param name="regex">%%registry_version%%</param> <param name="regex">%%registry_version%%</param>
<param name="package">distribution-registry</param> <param name="package">distribution-registry</param>

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: (c) 2022-2025 SUSE LLC # SPDX-FileCopyrightText: (c) 2022-2024 SUSE LLC
set -euo pipefail set -euo pipefail
@ -25,6 +25,6 @@ if command -v zypper > /dev/null; then
zypper -n clean zypper -n clean
fi fi
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2} rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
exit 0 exit 0

View File

@ -1,53 +1,3 @@
-------------------------------------------------------------------
Wed Feb 19 11:33:09 UTC 2025 - SUSE Update Bot <bci-internal@suse.de>
- fix image references in README
-------------------------------------------------------------------
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
-------------------------------------------------------------------
Wed Oct 30 18:28:27 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
- be explicit in protocol for expose statement
-------------------------------------------------------------------
Wed Oct 30 15:34:45 UTC 2024 - SUSE Update Bot <bci-internal@suse.de>
- remove nonsensical org.opencontainers.image.authors - duplication of .vendor
-------------------------------------------------------------------
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:12:11 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- improved log cleaning
-------------------------------------------------------------------
Fri Sep 13 09:56:19 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- Remove trailing whitespace
-------------------------------------------------------------------
Thu Aug 8 19:28:10 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- add oci.image.ref.name
-------------------------------------------------------------------
Thu Aug 8 16:43:43 UTC 2024 - Dirk Mueller <dmueller@suse.com>
- remove oci reference annotation again
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 5 11:38:13 UTC 2024 - Dirk Mueller <dmueller@suse.com> Mon Aug 5 11:38:13 UTC 2024 - Dirk Mueller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: Apache-2.0 --> <!-- SPDX-License-Identifier: Apache-2.0 -->
<!-- <!--
Copyright (c) 2025 SUSE LLC Copyright (c) 2024 SUSE LLC
All modifications and additions to the file contributed by third parties All modifications and additions to the file contributed by third parties
remain the property of their copyright owners, unless otherwise agreed remain the property of their copyright owners, unless otherwise agreed
@ -14,7 +14,7 @@ https://github.com/SUSE/BCI-dockerfile-generator
Please submit bugfixes or comments via https://bugs.opensuse.org/ Please submit bugfixes or comments via https://bugs.opensuse.org/
You can contact the BCI team via https://github.com/SUSE/bci/discussions You can contact the BCI team via https://github.com/SUSE/bci/discussions
--> -->
<!-- OBS-AddTag: opensuse/registry:%%registry_version%%-%RELEASE% opensuse/registry:%%registry_version%% opensuse/registry:2.8 opensuse/registry:latest --> <!-- OBS-AddTag: opensuse/registry:%%registry_version%% opensuse/registry:%%registry_version%%-%RELEASE% opensuse/registry:latest -->
<!-- OBS-Imagerepo: obsrepositories:/ --> <!-- OBS-Imagerepo: obsrepositories:/ -->
<image schemaversion="7.4" name="registry-image" xmlns:suse_label_helper="com.suse.label_helper"> <image schemaversion="7.4" name="registry-image" xmlns:suse_label_helper="com.suse.label_helper">
@ -27,11 +27,12 @@ You can contact the BCI team via https://github.com/SUSE/bci/discussions
<type image="docker" derived_from="obsrepositories:/opensuse/bci/bci-micro#latest"> <type image="docker" derived_from="obsrepositories:/opensuse/bci/bci-micro#latest">
<containerconfig <containerconfig
name="opensuse/registry" name="opensuse/registry"
tag="%%registry_version%%-%RELEASE%" tag="%%registry_version%%"
additionaltags="%%registry_version%%,2.8,latest" additionaltags="%%registry_version%%-%RELEASE%,latest"
user="registry"> user="registry">
<labels> <labels>
<suse_label_helper:add_prefix prefix="org.opensuse.application.registry"> <suse_label_helper:add_prefix prefix="org.opensuse.application.registry">
<label name="org.opencontainers.image.authors" value="openSUSE (https://www.opensuse.org/)"/>
<label name="org.opencontainers.image.title" value="openSUSE Tumbleweed OCI Container Registry (Distribution)"/> <label name="org.opencontainers.image.title" value="openSUSE Tumbleweed OCI Container Registry (Distribution)"/>
<label name="org.opencontainers.image.description" value="OCI Container Registry (Distribution) container based on the openSUSE Tumbleweed Base Container Image."/> <label name="org.opencontainers.image.description" value="OCI Container Registry (Distribution) container based on the openSUSE Tumbleweed Base Container Image."/>
<label name="org.opencontainers.image.version" value="%%registry_version%%"/> <label name="org.opencontainers.image.version" value="%%registry_version%%"/>
@ -39,12 +40,12 @@ You can contact the BCI team via https://github.com/SUSE/bci/discussions
<label name="org.opencontainers.image.vendor" value="openSUSE Project"/> <label name="org.opencontainers.image.vendor" value="openSUSE Project"/>
<label name="org.opencontainers.image.source" value="%SOURCEURL%"/> <label name="org.opencontainers.image.source" value="%SOURCEURL%"/>
<label name="org.opencontainers.image.url" value="https://www.opensuse.org"/> <label name="org.opencontainers.image.url" value="https://www.opensuse.org"/>
<label name="org.opencontainers.image.ref.name" value="%%registry_version%%-%RELEASE%"/>
<label name="org.opensuse.reference" value="registry.opensuse.org/opensuse/registry:%%registry_version%%-%RELEASE%"/> <label name="org.opensuse.reference" value="registry.opensuse.org/opensuse/registry:%%registry_version%%-%RELEASE%"/>
<label name="org.openbuildservice.disturl" value="%DISTURL%"/> <label name="org.openbuildservice.disturl" value="%DISTURL%"/>
<label name="org.opensuse.release-stage" value="released"/> <label name="org.opensuse.release-stage" value="released"/>
<label name="org.opensuse.lifecycle-url" value="https://en.opensuse.org/Lifetime#openSUSE_BCI"/> <label name="org.opensuse.lifecycle-url" value="https://en.opensuse.org/Lifetime#openSUSE_BCI"/>
</suse_label_helper:add_prefix> </suse_label_helper:add_prefix>
<label name="org.opencontainers.image.revision" value="%DISTURL%"/>
<label name="io.artifacthub.package.readme-url" value="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/distribution-image/README.md"/> <label name="io.artifacthub.package.readme-url" value="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/distribution-image/README.md"/>
</labels> </labels>
<subcommand execute="serve"> <subcommand execute="serve">
@ -56,11 +57,11 @@ You can contact the BCI team via https://github.com/SUSE/bci/discussions
<volume name="/var/lib/docker-registry" /> <volume name="/var/lib/docker-registry" />
</volumes> </volumes>
<expose> <expose>
<port number="5000/tcp" /> <port number="5000" />
</expose> </expose>
</containerconfig> </containerconfig>
</type> </type>
<version>2025</version> <version>2024</version>
<packagemanager>zypper</packagemanager> <packagemanager>zypper</packagemanager>
<rpm-check-signatures>false</rpm-check-signatures> <rpm-check-signatures>false</rpm-check-signatures>
<rpm-excludedocs>true</rpm-excludedocs> <rpm-excludedocs>true</rpm-excludedocs>