forked from pool/distribution-image
Compare commits
65 Commits
Author | SHA256 | Date | |
---|---|---|---|
|
50f5fcdbc5 | ||
4c93f1eecd | |||
|
6ed58c664e | ||
c2226f5983 | |||
|
dbed6b686b | ||
68d9d80bad | |||
|
b6efdae2ac | ||
f424939ae6 | |||
|
ef51e17ba8 | ||
48e988b711 | |||
|
ccfca7d682 | ||
8f4e1c850c | |||
|
bb05c6b45d | ||
a269003a49 | |||
|
3637146e11 | ||
21becf5f70 | |||
|
257155e588 | ||
c0990b2daa | |||
|
e025bb353a | ||
35d87c031a | |||
|
402fd482b3 | ||
|
1b85844deb | ||
4a0ecd326c | |||
59fdbb3041 | |||
|
a43781e6c1 | ||
|
50780f6492 | ||
|
2ffd7b3941 | ||
|
1669a651c6 | ||
e9b600fc12 | |||
|
a64c549110 | ||
48d83b2648 | |||
|
652d3481e0 | ||
23953b8a85 | |||
|
6a6bd4d252 | ||
cf075e6d7f | |||
|
ae7ea18e18 | ||
a421f27cd8 | |||
|
0d07a2395b | ||
7cfec92f7f | |||
|
64b57d3374 | ||
7623554e06 | |||
|
b5f06dc22f | ||
b17777398b | |||
|
ecadb43d1f | ||
874d504ee1 | |||
|
36c7031e1f | ||
22cd1c63a7 | |||
|
95cb3686f6 | ||
2ed8384679 | |||
|
a1a931acb3 | ||
64268eb45a | |||
|
7b55824f17 | ||
64dfc2ea13 | |||
|
5b9a45f981 | ||
c228264b08 | |||
|
29fd5e40a8 | ||
0b25125bee | |||
52652439e3 | |||
fdf927a0f0 | |||
50a7eb3f66 | |||
a6edee9eb4 | |||
4e6ebeb930 | |||
60efa6ed51 | |||
e36d2d9881 | |||
487a70504b |
@ -31,7 +31,7 @@ Then you can start the container with the following command:
|
||||
|
||||
```bash
|
||||
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:%%registry_version%%-%RELEASE%
|
||||
-v /var/lib/docker-registry:/var/lib/docker-registry --name registry registry.opensuse.org/opensuse/registry:2.8
|
||||
```
|
||||
|
||||
The registry is available at `http://localhost:5000`. To keep the registry running after a reboot, create a systemd service as follows:
|
||||
|
2
_service
2
_service
@ -1,7 +1,7 @@
|
||||
<services>
|
||||
<service mode="buildtime" name="kiwi_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">distribution-image.kiwi</param>
|
||||
<param name="regex">%%registry_version%%</param>
|
||||
<param name="package">distribution-registry</param>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# SPDX-License-Identifier: MIT
|
||||
# SPDX-FileCopyrightText: (c) 2022-2024 SUSE LLC
|
||||
# SPDX-FileCopyrightText: (c) 2022-2025 SUSE LLC
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
@ -25,6 +25,6 @@ if command -v zypper > /dev/null; then
|
||||
zypper -n clean
|
||||
fi
|
||||
|
||||
rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
||||
rm -rf {/target,}/var/log/{alternatives.log,lastlog,tallylog,zypper.log,zypp/history,YaST2}
|
||||
|
||||
exit 0
|
||||
|
@ -1,3 +1,53 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
||||
<!--
|
||||
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
|
||||
@ -14,7 +14,7 @@ https://github.com/SUSE/BCI-dockerfile-generator
|
||||
Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
You can contact the BCI team via https://github.com/SUSE/bci/discussions
|
||||
-->
|
||||
<!-- OBS-AddTag: opensuse/registry:%%registry_version%% opensuse/registry:%%registry_version%%-%RELEASE% opensuse/registry:latest -->
|
||||
<!-- OBS-AddTag: opensuse/registry:%%registry_version%%-%RELEASE% opensuse/registry:%%registry_version%% opensuse/registry:2.8 opensuse/registry:latest -->
|
||||
<!-- OBS-Imagerepo: obsrepositories:/ -->
|
||||
|
||||
<image schemaversion="7.4" name="registry-image" xmlns:suse_label_helper="com.suse.label_helper">
|
||||
@ -27,12 +27,11 @@ You can contact the BCI team via https://github.com/SUSE/bci/discussions
|
||||
<type image="docker" derived_from="obsrepositories:/opensuse/bci/bci-micro#latest">
|
||||
<containerconfig
|
||||
name="opensuse/registry"
|
||||
tag="%%registry_version%%"
|
||||
additionaltags="%%registry_version%%-%RELEASE%,latest"
|
||||
tag="%%registry_version%%-%RELEASE%"
|
||||
additionaltags="%%registry_version%%,2.8,latest"
|
||||
user="registry">
|
||||
<labels>
|
||||
<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.description" value="OCI Container Registry (Distribution) container based on the openSUSE Tumbleweed Base Container Image."/>
|
||||
<label name="org.opencontainers.image.version" value="%%registry_version%%"/>
|
||||
@ -40,12 +39,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.source" value="%SOURCEURL%"/>
|
||||
<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.openbuildservice.disturl" value="%DISTURL%"/>
|
||||
<label name="org.opensuse.release-stage" value="released"/>
|
||||
<label name="org.opensuse.lifecycle-url" value="https://en.opensuse.org/Lifetime#openSUSE_BCI"/>
|
||||
</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"/>
|
||||
</labels>
|
||||
<subcommand execute="serve">
|
||||
@ -57,11 +56,11 @@ You can contact the BCI team via https://github.com/SUSE/bci/discussions
|
||||
<volume name="/var/lib/docker-registry" />
|
||||
</volumes>
|
||||
<expose>
|
||||
<port number="5000" />
|
||||
<port number="5000/tcp" />
|
||||
</expose>
|
||||
</containerconfig>
|
||||
</type>
|
||||
<version>2024</version>
|
||||
<version>2025</version>
|
||||
<packagemanager>zypper</packagemanager>
|
||||
<rpm-check-signatures>false</rpm-check-signatures>
|
||||
<rpm-excludedocs>true</rpm-excludedocs>
|
||||
|
Loading…
x
Reference in New Issue
Block a user