[info=c56ed38d695b4a1840d1e69b234003c8]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/distribution-image?expand=0&rev=1
This commit is contained in:
commit
487a70504b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
10
_service
Normal file
10
_service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<services>
|
||||||
|
<service mode="buildtime" name="kiwi_metainfo_helper"/>
|
||||||
|
<service mode="buildtime" name="kiwi_label_helper"/>
|
||||||
|
<service name="replace_using_package_version" mode="buildtime">
|
||||||
|
<param name="file">distribution-image.kiwi</param>
|
||||||
|
<param name="regex">%%registry_version%%</param>
|
||||||
|
<param name="package">distribution-registry</param>
|
||||||
|
<param name="parse-version">minor</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
30
config.sh
Normal file
30
config.sh
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# SPDX-FileCopyrightText: (c) 2022 SUSE LLC
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
test -f /.kconfig && . /.kconfig
|
||||||
|
test -f /.profile && . /.profile
|
||||||
|
|
||||||
|
echo "Configure image: [$kiwi_iname]..."
|
||||||
|
|
||||||
|
#============================================
|
||||||
|
# Import repositories' keys if rpm is present
|
||||||
|
#--------------------------------------------
|
||||||
|
if command -v rpm > /dev/null; then
|
||||||
|
suseImportBuildKey
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#=======================================
|
||||||
|
# Clean up after zypper if it is present
|
||||||
|
#---------------------------------------
|
||||||
|
if command -v zypper > /dev/null; then
|
||||||
|
zypper -n clean
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf /var/log/zypp
|
||||||
|
|
||||||
|
exit 0
|
0
distribution-image.changes
Normal file
0
distribution-image.changes
Normal file
65
distribution-image.kiwi
Normal file
65
distribution-image.kiwi
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- SPDX-License-Identifier: Apache-2.0 -->
|
||||||
|
|
||||||
|
<!-- OBS-AddTag: opensuse/registry:%%registry_version%% opensuse/registry:latest opensuse/registry:%%registry_version%%-%RELEASE% -->
|
||||||
|
<!-- OBS-Imagerepo: obsrepositories:/ -->
|
||||||
|
|
||||||
|
<image schemaversion="6.5" name="registry-image" xmlns:suse_label_helper="com.suse.label_helper">
|
||||||
|
<description type="system">
|
||||||
|
<author>openSUSE Project</author>
|
||||||
|
<contact>https://www.suse.com/</contact>
|
||||||
|
<specification>openSUSE Tumbleweed OCI Container Registry using the OCI Image Specification (Distribution) Container Image</specification>
|
||||||
|
</description>
|
||||||
|
<preferences>
|
||||||
|
<type image="docker" derived_from="obsrepositories:/opensuse/bci/bci-micro#latest">
|
||||||
|
<containerconfig
|
||||||
|
name="opensuse/registry"
|
||||||
|
tag="%%registry_version%%"
|
||||||
|
maintainer="openSUSE (https://www.opensuse.org/)"
|
||||||
|
user="registry"
|
||||||
|
additionaltags="latest,%%registry_version%%-%RELEASE%">
|
||||||
|
<labels>
|
||||||
|
<!-- See https://en.opensuse.org/Building_derived_containers#Labels -->
|
||||||
|
<suse_label_helper:add_prefix prefix="org.opensuse.application.registry">
|
||||||
|
<label name="org.opencontainers.image.title" value="openSUSE Tumbleweed OCI Container Registry using the OCI Image Specification (Distribution) Container Image"/>
|
||||||
|
<label name="org.opencontainers.image.description" value="Open Source Registry implementation using the OCI Distribution Specification"/>
|
||||||
|
<label name="org.opencontainers.image.version" value="%%registry_version%%"/>
|
||||||
|
<label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
|
||||||
|
<label name="org.opencontainers.image.vendor" value="openSUSE Project"/>
|
||||||
|
<label name="org.opencontainers.image.url" value="https://www.opensuse.org"/>
|
||||||
|
<label name="org.opensuse.reference" value="registry.opensuse.org/opensuse/registry:%%registry_version%%-%RELEASE%"/>
|
||||||
|
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
|
||||||
|
|
||||||
|
<label name="com.suse.release-stage" value="released"/>
|
||||||
|
</suse_label_helper:add_prefix>
|
||||||
|
</labels>
|
||||||
|
<subcommand execute="serve">
|
||||||
|
<argument name="/etc/registry/config.yml"/>
|
||||||
|
</subcommand>
|
||||||
|
|
||||||
|
<entrypoint execute="/usr/bin/registry"/>
|
||||||
|
<volumes>
|
||||||
|
<volume name="/var/lib/docker-registry" />
|
||||||
|
</volumes>
|
||||||
|
<expose>
|
||||||
|
<port number="5000" />
|
||||||
|
</expose>
|
||||||
|
</containerconfig>
|
||||||
|
</type>
|
||||||
|
<version>15.Tumbleweed.0</version>
|
||||||
|
<packagemanager>zypper</packagemanager>
|
||||||
|
<rpm-check-signatures>false</rpm-check-signatures>
|
||||||
|
<rpm-excludedocs>true</rpm-excludedocs>
|
||||||
|
</preferences>
|
||||||
|
<repository type="rpm-md">
|
||||||
|
<source path="obsrepositories:/"/>
|
||||||
|
</repository>
|
||||||
|
<packages type="bootstrap">
|
||||||
|
<package name="apache2-utils"/>
|
||||||
|
<package name="ca-certificates-mozilla"/>
|
||||||
|
<package name="distribution-registry"/>
|
||||||
|
<package name="perl"/>
|
||||||
|
<package name="util-linux"/>
|
||||||
|
</packages>
|
||||||
|
|
||||||
|
</image>
|
Loading…
x
Reference in New Issue
Block a user