File buildbot-container-kiwi.kiwi of Package buildbot-container-kiwi

<?xml version="1.0" encoding="utf-8"?>
<!-- OBS-Profiles: @BUILD_FLAVOR@ -->
<!-- OBS-Imagerepo: obsrepositories:/ -->
<image xmlns:suse_label_helper="com.suse.label_helper" schemaversion="6.8" name="buildbot-container-kiwi">
  <!--
  Copyright (c) 2018-2020, Ilmi Solutions Oy

  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.

  Description:
  Kiwi image config for Docker builder worker openSUSE %OS_VERSION_ID%

  Daemon configuration should be mounted to /var/lib/buildbot-daemon
  Worker configuration should be mounted to /var/lib/buildbot-worker
  -->
  <description type="system">
    <author>Tuukka Pasanen</author>
    <contact>tuukka.pasanen@ilmi.fi</contact>
    <specification>openSUSE Buildbot worker docker image</specification>
  </description>
  <profiles>
    <profile name="buildbot-worker" description="Buildbot worker for Docker openSUSE Leap %OS_VERSION_ID%"/>
    <profile name="buildbot-master" description="Buildbot daemon for Docker openSUSE Leap %OS_VERSION_ID%"/>
  </profiles>
  <preferences>
    <version>%PKG_VERSION%-%RELEASE%</version>
    <packagemanager>zypper</packagemanager>
    <rpm-check-signatures>false</rpm-check-signatures>
    <rpm-excludedocs>true</rpm-excludedocs>
    <locale>fi_FI</locale>
    <keytable>fi.map.gz</keytable>
  </preferences>
  <preferences profiles="buildbot-worker">
    <type image="docker">
      <containerconfig name="opensuse/ilmi/buildbot-worker" tag="%PKG_VERSION%-%RELEASE%" maintainer="Tuukka Pasanen &lt;tuukka.pasanen@ilmi.fi&gt;" additionaltags="%OS_VERSION_ID%,%PKG_VERSION%,%PKG_VERSION%-%RELEASE%">
        <labels>
          <suse_label_helper:add_prefix prefix="fi.ilmi.buildbot">
            <label name="org.opencontainers.image.title" value="openSUSE Leap %OS_VERSION_ID% Buildbot worker"/>
            <label name="org.opencontainers.image.description" value="Buildbot worker based openSUSE Leap %OS_VERSION_ID% (https://buildbot.net)."/>
            <label name="org.opencontainers.image.version" value="%PKG_VERSION%.%RELEASE%"/>
            <label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
            <label name="org.opencontainers.image.vendor" value="Ilmi Solutions Oy"/>
            <label name="org.opencontainers.image.url" value="https://www.ilmi.fi/"/>
            <label name="org.openbuildservice.disturl" value="%DISTURL%"/>
          </suse_label_helper:add_prefix>
        </labels>
        <history author="Tuukka Pasanen &lt;tuukka.pasanen@ilmi.fi&gt;">Buildbot worker</history>
        <subcommand execute="/usr/bin/run-buildbot-worker.sh">
          <argument name="-d"/>
        </subcommand>
        <environment>
          <env name="LANG" value="fi_FI.UTF-8"/>
          <env name="LC_ALL" value="fi_FI.UTF-8"/>
          <env name="TZ" value="Europe/Helsinki"/>
        </environment>
      </containerconfig>
    </type>
  </preferences>
  <preferences profiles="buildbot-master">
    <type image="docker">
      <containerconfig name="opensuse/ilmi/buildbot-daemon" tag="%PKG_VERSION%-%RELEASE%" maintainer="Tuukka Pasanen &lt;tuukka.pasanen@ilmi.fi&gt;" additionaltags="%OS_VERSION_ID%,%PKG_VERSION%,%PKG_VERSION%-%RELEASE%" user="nobody" workingdir="/var/lib/nobody">
        <labels>
          <suse_label_helper:add_prefix prefix="fi.ilmi.buildbot">
            <label name="org.opencontainers.image.title" value="openSUSE Leap %OS_VERSION_ID% Buildbot daemon"/>
            <label name="org.opencontainers.image.description" value="Buildbot daemon based openSUSE Leap %OS_VERSION_ID% (https://buildbot.net)."/>
            <label name="org.opencontainers.image.version" value="%PKG_VERSION%.%RELEASE%"/>
            <label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
            <label name="org.opencontainers.image.vendor" value="Ilmi Solutions Oy"/>
            <label name="org.opencontainers.image.url" value="https://www.ilmi.fi/"/>
            <label name="org.openbuildservice.disturl" value="%DISTURL%"/>
          </suse_label_helper:add_prefix>
        </labels>
        <history author="Tuukka Pasanen &lt;tuukka.pasanen@ilmi.fi&gt;">Buildbot daemon</history>
        <subcommand execute="/usr/bin/run-buildbot-server.sh">
          <argument name="-d"/>
        </subcommand>
        <environment>
          <env name="LANG" value="fi_FI.UTF-8"/>
          <env name="LC_ALL" value="fi_FI.UTF-8"/>
          <env name="TZ" value="Europe/Helsinki"/>
        </environment>
      </containerconfig>
    </type>
  </preferences>
  <repository type="rpm-md">
    <source path="obsrepositories:/"/>
  </repository>
  <packages type="image">
    <package name="ca-certificates"/>
    <package name="ca-certificates-cacert"/>
    <package name="ca-certificates-mozilla"/>
    <package name="openSUSE-build-key"/>
  </packages>
  <packages type="bootstrap">
    <package name="container-locale-archive-fi"/>
    <package name="filesystem"/>
    <package name="openSUSE-release-appliance-docker"/>
  </packages>
  <packages type="image">
    <archive name="root.tar.xz"/>
    <!-- Have always worker and get version from this -->
    <package name="python311-buildbot_worker"/>
    <!-- These are needed to run config.sh at the end -->
    <package name="sed"/>
    <package name="findutils"/>
    <package name="system-user-nobody"/>
  </packages>
  <packages type="image" profiles="buildbot-master">
    <package name="python311-buildbot"/>
    <package name="python311-buildbot_badges"/>
    <package name="python311-buildbot_pkg"/>
    <package name="python311-buildbot_grid-view"/>
    <package name="python311-buildbot_react-grid-view"/>
    <package name="python311-buildbot_waterfall-view"/>
    <package name="python311-buildbot_www"/>
    <package name="python311-buildbot_www-react"/>
  </packages>
  <packages type="image" profiles="buildbot-worker,buildbot-master">
    <package name="container-locale-archive-fi"/>
  </packages>
</image>
openSUSE Build Service is sponsored by