1
0
Tim Serong 2020-09-11 10:31:44 +00:00 committed by Git OBS Bridge
commit 924e3a36aa
11 changed files with 271 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

13
README Normal file
View File

@ -0,0 +1,13 @@
# Generating the KIWI file
The `.kiwi` file is generated from the `csi-provisioner-image.xsl`
base template and the `*.xml` documents for each distribution.
After making changes to any of the xsl or xml files, the kiwi
file can be regenerated by running `sh ./pre-checkin.sh TARGET`,
where TARGET corresponds to the distribution flavor in use.
## Requirements
* xsltproc

10
_service Normal file
View File

@ -0,0 +1,10 @@
<services>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">csi-provisioner-image.kiwi</param>
<param name="regex">%PKG_VERSION%</param>
<param name="parse-version">patch</param>
<param name="package">csi-external-provisioner</param>
</service>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service mode="buildtime" name="kiwi_label_helper"/>
</services>

View File

@ -0,0 +1,25 @@
-------------------------------------------------------------------
Fri Sep 11 06:39:23 UTC 2020 - Tim Serong <tserong@suse.com>
- Rework OBS project to use per-distribution xml template files
-------------------------------------------------------------------
Wed Aug 26 10:59:54 UTC 2020 - Tim Serong <tserong@suse.com>
- Rename to csi-provisioner-image, update metadata for SES 7 release
-------------------------------------------------------------------
Thu Aug 13 11:58:28 UTC 2020 - jmassaguerpla@suse.com
- remove beta tag
-------------------------------------------------------------------
Wed Aug 12 18:00:23 UTC 2020 - Chin-Ya Huang <chin-ya.huang@suse.com>
- Add missing _service file
-------------------------------------------------------------------
Tue Aug 4 07:16:39 GMT 2020 - Chin-Ya Huang <chin-ya.huang@suse.com>
- Initial release of version 1

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is generated,
don't manually modify this file,
please check README
-->
<!-- OBS-AddTag: opensuse/cephcsi/csi-provisioner:v%PKG_VERSION%-rev<VERSION> opensuse/cephcsi/csi-provisioner:v%PKG_VERSION%-rev<VERSION>-build<RELEASE> -->
<image xmlns:suse_label_helper="com.suse.label_helper" schemaversion="6.9" name="csi-provisioner-image">
<description type="system">
<author>SUSE Containers Team</author>
<contact>containers@suse.com</contact>
<specification>csi-provisioner running on a openSUSE Tumbleweed container guest</specification>
</description>
<preferences>
<type image="docker" derived_from="obsrepositories:/opensuse/tumbleweed">
<containerconfig tag="v%PKG_VERSION%" maintainer="SUSE Containers Team &lt;containers@suse.com&gt;" name="opensuse/cephcsi/csi-provisioner">
<entrypoint execute="/usr/bin/csi-provisioner"/>
<subcommand clear="true"/>
<labels>
<suse_label_helper:add_prefix prefix="org.opensuse.cephcsi">
<label name="org.opencontainers.image.description" value="csi-provisioner running on a openSUSE Tumbleweed container guest"/>
<label name="org.opencontainers.image.title" value="csi-provisioner container"/>
<label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
<label name="org.opencontainers.image.vendor" value="SUSE LLC"/>
<label name="org.opencontainers.image.url" value="https://registry.opensuse.org/opensuse/cephcsi/csi-provisioner:v%PKG_VERSION%"/>
<label name="org.opencontainers.image.version" value="v%PKG_VERSION%"/>
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
<label name="org.opensuse.reference" value="registry.opensuse.org/opensuse/cephcsi/csi-provisioner:v%PKG_VERSION%"/>
</suse_label_helper:add_prefix>
</labels>
</containerconfig>
</type>
<version>1</version>
<packagemanager>zypper</packagemanager>
<rpm-excludedocs>true</rpm-excludedocs>
</preferences>
<repository>
<source path="obsrepositories:/"/>
</repository>
<packages type="image">
<package name="csi-external-provisioner"/>
</packages>
<packages type="bootstrap">
<package name="openSUSE-release-ftp"/>
</packages>
</image>

98
csi-provisioner-image.xsl Normal file
View File

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:comment>
This file is generated,
don't manually modify this file,
please check README
</xsl:comment>
<xsl:comment> OBS-AddTag: <xsl:value-of select="param/name" />:v%PKG_VERSION%-rev&lt;VERSION&gt; <xsl:value-of select="param/name" />:v%PKG_VERSION%-rev&lt;VERSION&gt;-build&lt;RELEASE&gt; </xsl:comment>
<image schemaversion="6.9" name="csi-provisioner-image" xmlns:suse_label_helper="com.suse.label_helper">
<description type="system">
<author>SUSE Containers Team</author>
<contact>containers@suse.com</contact>
<specification>csi-provisioner running on a <xsl:value-of select="param/os" /> container guest</specification>
</description>
<preferences>
<type image="docker">
<xsl:attribute name="derived_from">
<xsl:value-of select="param/image" />
</xsl:attribute>
<containerconfig
tag="v%PKG_VERSION%"
maintainer="SUSE Containers Team &lt;containers@suse.com&gt;"
>
<xsl:attribute name="name">
<xsl:value-of select="param/name" />
</xsl:attribute>
<entrypoint execute="/usr/bin/csi-provisioner"/>
<subcommand clear="true"/>
<labels>
<suse_label_helper:add_prefix>
<xsl:attribute name="prefix">
<xsl:value-of select="param/prefix" />
</xsl:attribute>
<label name="org.opencontainers.image.description">
<xsl:attribute name="value">csi-provisioner running on a <xsl:value-of select="param/os" /> container guest</xsl:attribute>
</label>
<label name="org.opencontainers.image.title">
<xsl:attribute name="value">
<xsl:value-of select="param/title" />
</xsl:attribute>
</label>
<label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
<label name="org.opencontainers.image.vendor" value="SUSE LLC"/>
<label name="org.opencontainers.image.url">
<xsl:attribute name="value">
<xsl:value-of select="param/url" />
</xsl:attribute>
</label>
<label name="org.opencontainers.image.version" value="v%PKG_VERSION%"/>
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
<label>
<xsl:attribute name="name">
<xsl:value-of select="param/referencelabel" />
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="param/reference" />
</xsl:attribute>
</label>
</suse_label_helper:add_prefix>
</labels>
</containerconfig>
</type>
<version>1</version>
<packagemanager>zypper</packagemanager>
<rpm-excludedocs>true</rpm-excludedocs>
</preferences>
<repository>
<source path="obsrepositories:/"/>
</repository>
<packages type="image">
<package name="csi-external-provisioner"/>
</packages>
<packages type='bootstrap'>
<xsl:for-each select="param/packages_boot/package">
<package>
<xsl:attribute name="name">
<xsl:value-of select="name" />
</xsl:attribute>
</package>
</xsl:for-each>
</packages>
</image>
</xsl:template>
</xsl:stylesheet>

16
leap15_2.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<param>
<image>obsrepositories:/opensuse/leap#15.2</image>
<os>openSUSE Leap 15.2</os>
<name>cephcsi/csi-provisioner</name>
<prefix>org.opensuse.cephcsi</prefix>
<title>csi-provisioner container</title>
<url>https://registry.opensuse.org/opensuse/cephcsi/csi-provisioner:v%PKG_VERSION%</url>
<referencelabel>org.opensuse.reference</referencelabel>
<reference>registry.opensuse.org/cephcsi/csi-provisioner:v%PKG_VERSION%</reference>
<packages_boot>
<package>
<name>openSUSE-release-ftp</name>
</package>
</packages_boot>
</param>

12
pre-checkin.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
#
# Generate the kiwi file for the given target.
image="csi-provisioner-image"
target=${1:-tumbleweed}
if [ ! -e ${target}.xml ]; then
echo "Unknown target: ${target}.xml must exist!"
exit 1
fi
xsltproc "${image}.xsl" "${target}.xml" > "${image}.kiwi"

11
ses7.xml Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<param>
<image>obsrepositories:/suse/sle15#15.2</image>
<os>SLES15 SP2</os>
<name>ses/7/cephcsi/csi-provisioner</name>
<prefix>com.suse.ses</prefix>
<title>SES csi-provisioner container</title>
<url>https://www.suse.com/products/suse-enterprise-storage/</url>
<referencelabel>com.suse.reference</referencelabel>
<reference>registry.suse.com/ses/7/cephcsi/csi-provisioner:v%PKG_VERSION%</reference>
</param>

16
tumbleweed.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<param>
<image>obsrepositories:/opensuse/tumbleweed</image>
<os>openSUSE Tumbleweed</os>
<name>opensuse/cephcsi/csi-provisioner</name>
<prefix>org.opensuse.cephcsi</prefix>
<title>csi-provisioner container</title>
<url>https://registry.opensuse.org/opensuse/cephcsi/csi-provisioner:v%PKG_VERSION%</url>
<referencelabel>org.opensuse.reference</referencelabel>
<reference>registry.opensuse.org/opensuse/cephcsi/csi-provisioner:v%PKG_VERSION%</reference>
<packages_boot>
<package>
<name>openSUSE-release-ftp</name>
</package>
</packages_boot>
</param>