Hello community,

here is the log from the commit of package ceph-csi-image for openSUSE:Factory 
checked in at 2019-07-23 22:38:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ceph-csi-image (Old)
 and      /work/SRC/openSUSE:Factory/.ceph-csi-image.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ceph-csi-image"

Tue Jul 23 22:38:12 2019 rev:1 rq:717826 version:1.0.0

Changes:
--------
New Changes file:

--- /dev/null   2019-07-18 00:53:00.979475821 +0200
+++ /work/SRC/openSUSE:Factory/.ceph-csi-image.new.4126/ceph-csi-image.changes  
2019-07-23 22:38:24.734958568 +0200
@@ -0,0 +1,9 @@
+-------------------------------------------------------------------
+Tue Jul 23 09:28:44 UTC 2019 - Denis Kondratenko <[email protected]>
+
+- Add LICENSE for kiwi descriptions 
+
+-------------------------------------------------------------------
+Thu Jul 11 16:26:46 UTC 2019 - Denis Kondratenko <[email protected]>
+
+- Initial ceph-csi CSI driver image 

New:
----
  LICENSE
  README
  _service
  ceph-csi-image.changes
  ceph-csi-image.kiwi
  ceph-csi-image.xsl
  config.sh
  leap15_1.xml
  ses6.xml
  tumbleweed.xml

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ceph-csi-image.kiwi ++++++
<?xml version="1.0" encoding="UTF-8"?>
<image xmlns:suse_label_helper="com.suse.label_helper" schemaversion="6.9" 
name="ceph-csi-image">
  <description type="system">
    <author>Denis Kondratenko</author>
    <contact>[email protected]</contact>
    <specification>Ceph CSI driver container</specification>
  </description>
  <preferences>
    <type image="docker" derived_from="obsrepositories:/opensuse/tumbleweed">
      <containerconfig tag="latest" 
additionaltags="%PKG_VERSION%.%PKG_COMMIT_NUM%.%RELEASE%,%PKG_VERSION%.%PKG_COMMIT_NUM%"
 maintainer="SUSE Storage Team &lt;[email protected]&gt;" 
name="opensuse/cephcsi/cephcsi">
        <entrypoint execute="/usr/bin/cephcsi"/>
        <labels>
          <suse_label_helper:add_prefix prefix="org.opensuse.cephcsi">
            <label name="org.opencontainers.image.title" value="Ceph CSI driver 
container"/>
            <label name="org.opencontainers.image.description" value="Ceph CSI 
driver"/>
            <label name="org.opencontainers.image.version" 
value="%PKG_VERSION%.%PKG_COMMIT_NUM%"/>
            <label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
            <label name="org.opencontainers.image.vendor" value="SUSE LLC"/>
            <label name="org.opencontainers.image.url" 
value="registry.opensuse.org/opensuse/cephcsi/cephcsi:%PKG_VERSION%.%PKG_COMMIT_NUM%"/>
            <label name="org.openbuildservice.disturl" value="%DISTURL%"/>
            <label name="org.opensuse.reference" 
value="opensuse/cephcsi/cephcsi:%PKG_VERSION%.%PKG_COMMIT_NUM%"/>
          </suse_label_helper:add_prefix>
        </labels>
        <history author="Denis Kondratenko 
&lt;[email protected]&gt;">New Ceph CSI image</history>
      </containerconfig>
    </type>
    <version>1.0.0</version>
    <packagemanager>zypper</packagemanager>
    <rpm-check-signatures>false</rpm-check-signatures>
    <rpm-excludedocs>true</rpm-excludedocs>
    <locale>en_US</locale>
    <keytable>us.map.gz</keytable>
  </preferences>
  <repository type="rpm-md">
    <source path="obsrepositories:/"/>
  </repository>
  <packages type="image">
    <package name="ceph-csi"/>
    <package name="openSUSE-build-key"/>
  </packages>
  <packages type="bootstrap">
    <package name="filesystem"/>
    <package name="glibc-locale-base"/>
    <package name="kubic-locale-archive"/>
    <package name="openSUSE-release-ftp"/>
  </packages>
</image>
++++++ LICENSE ++++++
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
++++++ README ++++++
# HOWTO generate kiwi file for different platfoms

* xsltproc ceph-csi-image.xsl tumbleweed.xml > ceph-csi-image.kiwi
* xsltproc ceph-csi-image.xsl leap15_1.xml > ceph-csi-image.kiwi
* xsltproc ceph-csi-image.xsl ses6.xml > ceph-csi-image.kiwi
++++++ _service ++++++
<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">ceph-csi-image.kiwi</param>
        <param name="parse-version">patch</param>
        <param name="regex">%PKG_VERSION%</param>
        <param name="package">ceph-csi</param>
    </service>
    <service name="replace_using_package_version" mode="buildtime">
        <param name="file">ceph-csi-image.kiwi</param>
        <param name="regex">%PKG_COMMIT_NUM%</param>
        <param name="parse-version">offset</param>
        <param name="package">ceph-csi</param>
    </service>
</services>

++++++ ceph-csi-image.xsl ++++++
<?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="/">

<image schemaversion="6.9" name="ceph-csi-image" 
xmlns:suse_label_helper="com.suse.label_helper">

  <description type="system">
    <author>Denis Kondratenko</author>
    <contact>[email protected]</contact>
    <specification>Ceph CSI driver container</specification>
  </description>

  <preferences>
    <type image="docker">
      <xsl:attribute name="derived_from">
        <xsl:value-of select="param/image" />
      </xsl:attribute>
      <containerconfig
        tag="latest"
        
additionaltags="%PKG_VERSION%.%PKG_COMMIT_NUM%.%RELEASE%,%PKG_VERSION%.%PKG_COMMIT_NUM%"
        maintainer="SUSE Storage Team &lt;[email protected]&gt;">
        <xsl:attribute name="name">
          <xsl:value-of select="param/name" />
        </xsl:attribute>

        <entrypoint execute="/usr/bin/cephcsi"/>

         <labels>

          <suse_label_helper:add_prefix>
            <xsl:attribute name="prefix">
              <xsl:value-of select="param/prefix" />
            </xsl:attribute>

            <label name="org.opencontainers.image.title">
              <xsl:attribute name="value">
                <xsl:value-of select="param/title" />
              </xsl:attribute>
            </label>

            <label name="org.opencontainers.image.description" value="Ceph CSI 
driver"/>
            <label name="org.opencontainers.image.version" 
value="%PKG_VERSION%.%PKG_COMMIT_NUM%"/>
            <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.openbuildservice.disturl" value="%DISTURL%"/>

            <label name="org.opensuse.reference">
              <xsl:attribute name="value">
                <xsl:value-of select="param/reference" />
              </xsl:attribute>
            </label> 
          
          </suse_label_helper:add_prefix>

          <xsl:for-each select="param/labels/label">
            <label>
              <xsl:attribute name="name">
                <xsl:value-of select="name" />
              </xsl:attribute>
              <xsl:attribute name="value">
                <xsl:value-of select="value" />
              </xsl:attribute>
            </label>
          </xsl:for-each>

        </labels>

        <history author="Denis Kondratenko 
&lt;[email protected]&gt;">New Ceph CSI image</history>
     </containerconfig>
    </type>
    <version>1.0.0</version>
    <packagemanager>zypper</packagemanager>
    <rpm-check-signatures>false</rpm-check-signatures>
    <rpm-excludedocs>true</rpm-excludedocs>
    <locale>en_US</locale>
    <keytable>us.map.gz</keytable>
  </preferences>

  <repository type='rpm-md'>
    <source path='obsrepositories:/'/>
  </repository>

  <packages type="image">
    <package name="ceph-csi"/>

    <xsl:for-each select="param/packages_image/package">
      <package>
        <xsl:attribute name="name">
          <xsl:value-of select="name" />
        </xsl:attribute>
      </package>
    </xsl:for-each>

  </packages>

  <packages type='bootstrap'>
    <package name='filesystem'/>
    <package name='glibc-locale-base'/>

    <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> ++++++ config.sh ++++++
#!/bin/bash
#================
# FILE          : config.sh
#----------------
# PROJECT       : OpenSuSE KIWI Image System
# COPYRIGHT     : (c) 2013 SUSE LLC
#               :
# AUTHOR        : Robert Schweikert <[email protected]>
#               :
# BELONGS TO    : Operating System images
#               :
# DESCRIPTION   : configuration script for SUSE based
#               : operating systems
#               :
#               :
# STATUS        : BETA
#----------------
#======================================
# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile

#======================================
# Greeting...
#--------------------------------------
echo "Configure image: [$kiwi_iname]..."

#======================================
# Setup baseproduct link
#--------------------------------------
suseSetupProduct

#======================================
# SuSEconfig
#--------------------------------------
suseConfig

#======================================
# Import repositories' keys
#--------------------------------------
suseImportBuildKey

#======================================
# Umount kernel filesystems
#--------------------------------------
baseCleanMount

#======================================
# Disable recommends
#--------------------------------------
sed -i 's/.*installRecommends.*/installRecommends = no/g' /etc/zypp/zypper.conf

#======================================
# Remove locale files
#--------------------------------------
(cd /usr/share/locale && find -name '*.mo' | xargs rm)

#======================================
# adjust lvm conf for ceph-colume
#--------------------------------------
sed -i 's/udev_sync = 1/udev_sync = 0/g' /etc/lvm/lvm.conf && \
sed -i 's/udev_rules = 1/udev_rules = 0/g' /etc/lvm/lvm.conf && \
sed -i 's/obtain_device_list_from_udev = 1/obtain_device_list_from_udev = 0/g' 
/etc/lvm/lvm.conf

exit 0
++++++ leap15_1.xml ++++++
<?xml version="1.0" encoding="UTF-8"?>
<param>
  <image>obsrepositories:/opensuse/leap#15.1</image>
  <name>cephcsi/cephcsi</name>
  <prefix>org.opensuse.cephcsi</prefix>
  <title>Ceph CSI driver container</title>
  
<url>registry.opensuse.org/cephcsi/cephcsi:%PKG_VERSION%.%PKG_COMMIT_NUM%</url>
  <reference>cephcsi/cephcsi:%PKG_VERSION%.%PKG_COMMIT_NUM%</reference>
  <packages_image>
    <package>
      <name>openSUSE-build-key</name>
    </package>
  </packages_image>
  <packages_boot>
    <package>
      <name>kubic-locale-archive</name>
    </package>
    <package>
      <name>openSUSE-release-ftp</name>
    </package>
  </packages_boot>
</param>++++++ ses6.xml ++++++
<?xml version="1.0" encoding="UTF-8"?>
<param>
  <image>obsrepositories:/suse/sle15#15.1</image>
  <name>ses/6/cephcsi/cephcsi</name>
  <prefix>com.suse.ses</prefix>
  <title>SUSE Enterprise Storage 6.0</title>
  
<url>https://registry.suse.com/ses/6/cephcsi/cephcsi:%PKG_VERSION%.%PKG_COMMIT_NUM%</url>
  <reference>ses/6/cephcsi/cephcsi:%PKG_VERSION%.%PKG_COMMIT_NUM%</reference>
  <labels>
        <label>
                <name>com.suse.ses.version</name>
                <value>6.0</value>
        </label>
        <label>
                <name>com.suse.ses.url</name>
                
<value>https://www.suse.com/solutions/software-defined-storage/</value>
        </label>
        <label>
                <name>com.suse.cephcsi.version</name>
                <value>%PKG_VERSION%</value>
        </label>
        <label>
                <name>com.suse.cephcsi.url</name>
                <value>https://github.com/ceph/ceph-csi</value>
        </label>
        <label>
                <name>com.suse.cephcsi.created</name>
                <value>%BUILDTIME%</value>
        </label>
  </labels>
</param>
++++++ tumbleweed.xml ++++++
<?xml version="1.0" encoding="UTF-8"?>
<param>
  <image>obsrepositories:/opensuse/tumbleweed</image>
  <name>opensuse/cephcsi/cephcsi</name>
  <prefix>org.opensuse.cephcsi</prefix>
  <title>Ceph CSI driver container</title>
  
<url>registry.opensuse.org/opensuse/cephcsi/cephcsi:%PKG_VERSION%.%PKG_COMMIT_NUM%</url>
  <reference>opensuse/cephcsi/cephcsi:%PKG_VERSION%.%PKG_COMMIT_NUM%</reference>
  <packages_image>
    <package>
      <name>openSUSE-build-key</name>
    </package>
  </packages_image>
  <packages_boot>
    <package>
      <name>kubic-locale-archive</name>
    </package>
    <package>
      <name>openSUSE-release-ftp</name>
    </package>
  </packages_boot>
</param>

Reply via email to