File kiwi-nginx-container.kiwi of Package kiwi-nginx-container

<?xml version="1.0" encoding="utf-8"?>
<!-- OBS-Profiles: @BUILD_FLAVOR@ -->
<!-- OBS-Imagerepo: obsrepositories:/ -->
<image xmlns:suse_label_helper="com.suse.label_helper" schemaversion="7.4" name="kiwi-nginx-container">
  <!--
  Copyright (c) 2025, 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 NGINX openSUSE %OS_VERSION_ID%
  -->
  <description type="system">
    <author>Tuukka Pasanen</author>
    <contact>tuukka.pasanen@ilmi.fi</contact>
    <specification>Opinionated openSUSE NGINX with SSL container</specification>
  </description>
  <profiles>
    <profile name="nginx-config-ssl" description="NGINX container with config from https://github.com/illuusio/nginx-config and port 80 redirection build with openSUSE Leap %OS_VERSION_ID%"/>
    <profile name="nginx-config-fpm" description="NGINX container with config from https://github.com/illuusio/nginx-config and PHP 8.x FPM openSUSE Leap %OS_VERSION_ID%"/>
    <profile name="nginx-config-uwsgi" description="NGINX container with config https://github.com/illuusio/nginx-config and UWSGI launcher openSUSE Leap %OS_VERSION_ID%"/>
  </profiles>
  <preferences>
    <version>%PKG_NGINX_CONFIG_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="nginx-config-ssl">
    <type image="docker">
      <containerconfig name="nginx-config-ssl" tag="%PKG_NGINX_CONFIG_VERSION%-%RELEASE%" maintainer="Tuukka Pasanen &lt;tuukka.pasanen@ilmi.fi&gt;" user="nginx" additionaltags="%PKG_NGINX_VERSION%,%PKG_NGINX_VERSION%-%RELEASE%,%PKG_NGINX_CONFIG_VERSION%,%PKG_NGINX_CONFIG_VERSION%-%RELEASE%,latest">
        <labels>
          <suse_label_helper:add_prefix prefix="com.github.illuusio.nginx">
            <label name="org.opencontainers.image.title" value="openSUSE Leap %OS_VERSION_ID% NGINX SSL"/>
            <label name="org.opencontainers.image.description" value="NGINX %PKG_NGINX_VERSION% container with tuning from Mozilla (https://ssl-config.mozilla.org/) and port 80 redirection. openSUSE Leap %OS_VERSION_ID%"/>
            <label name="org.opencontainers.image.version" value="%PKG_NGINX_CONFIG_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;">NGINX SSL</history>
        <subcommand execute="/usr/bin/nginx-launch.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="nginx-config-fpm">
    <type image="docker">
      <containerconfig name="nginx-config-fpm" tag="%PKG_NGINX_CONFIG_VERSION%-%RELEASE%" maintainer="Tuukka Pasanen &lt;tuukka.pasanen@ilmi.fi&gt;" user="nginx" additionaltags="%PKG_NGINX_VERSION%,%PKG_NGINX_VERSION%-%RELEASE%,%PKG_NGINX_CONFIG_VERSION%,%PKG_NGINX_CONFIG_VERSION%-%RELEASE%,latest">
        <labels>
          <suse_label_helper:add_prefix prefix="com.github.illuusio.nginx.php-fpm">
            <label name="org.opencontainers.image.title" value="openSUSE Leap %OS_VERSION_ID% NGINX SSL with PHP 8.x FPM"/>
            <label name="org.opencontainers.image.description" value="NGINX %PKG_NGINX_VERSION% container with configs from https://github.com/illuusio/nginx-config and PHP 8.x FPM. openSUSE Leap %OS_VERSION_ID%"/>
            <label name="org.opencontainers.image.version" value="%PKG_NGINX_CONFIG_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;">NGINX FPM</history>
        <subcommand execute="/usr/bin/nginx-launch.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="nginx-config-uwsgi">
    <type image="docker">
      <containerconfig name="nginx-config-uwsgi" tag="%PKG_NGINX_CONFIG_VERSION%-%RELEASE%" maintainer="Tuukka Pasanen &lt;tuukka.pasanen@ilmi.fi&gt;" user="nginx" additionaltags="%PKG_NGINX_VERSION%,%PKG_NGINX_VERSION%-%RELEASE%,%PKG_NGINX_CONFIG_VERSION%,%PKG_NGINX_CONFIG_VERSION%-%RELEASE%,latest">
        <labels>
          <suse_label_helper:add_prefix prefix="com.github.illuusio.nginx.uwsgi">
            <label name="org.opencontainers.image.title" value="openSUSE Leap %OS_VERSION_ID% NGINX SSL with UWSGI"/>
            <label name="org.opencontainers.image.description" value="NGINX %PKG_NGINX_VERSION% container configs from https://github.com/illuusio/nginx-config and uWSGI engine. openSUSE Leap %OS_VERSION_ID%"/>
            <label name="org.opencontainers.image.version" value="%PKG_NGINX_CONFIG_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;">NGINX UWSGI</history>
        <subcommand execute="/usr/bin/nginx-launch.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="aaa_base"/>
    <package name="bash"/>
    <package name="ca-certificates"/>
    <package name="ca-certificates-cacert"/>
    <package name="ca-certificates-mozilla"/>
    <package name="coreutils"/>
    <package name="cracklib-dict-small"/>
    <package name="libcurl-mini4"/>
    <package name="curl"/>
    <package name="filesystem"/>
    <package name="glibc-locale-base"/>
    <package name="gzip"/>
    <package name="lsb-release"/>
    <package name="netcfg"/>
    <package name="openssl"/>
    <package name="openSUSE-build-key"/>
    <package name="Leap-release"/>
    <package name="Leap-release-appliance-docker"/>
    <package name="openSUSE-repos"/>
    <package name="patterns-base-minimal_base"/>
    <package name="patterns-base-fips"/>
    <package name="procps"/>
    <package name="shadow"/>
    <package name="tar"/>
    <package name="timezone"/>
    <package name="user(nobody)"/> <!-- Needed for Podman, see bsc#1212118 -->
    <package name="zypper"/>
    <!-- Only used in config.sh and then removed again -->
    <package name="jdupes"/>
  </packages>
  <packages type="bootstrap">
    <package name="container-locale-archive-fi"/>
    <!-- this-is-only-for-build-envs -->
    <package name="systemd"/>
  </packages>
  <packages type="image">
    <!-- Have always worker and get version from this -->
    <package name="nginx"/>
    <package name="nginx-module-brotli"/>
    <!-- Contaier NGinX config files -->
    <package name="basicssl-nginx-config"/>
    <!-- Have CDN bundled so it's easy to use this container image -->
    <package name="js-cdn"/>
    <!-- These are needed to run config.sh at the end -->
    <package name="sed"/>
    <package name="findutils"/>
    <package name="system-user-nobody"/>
    <package name="timezone"/>
  </packages>
  <packages type="image" profiles="nginx-config-fpm">
    <archive name="root-php7.tar.xz"/>
    <package name="php8-fpm"/>
  </packages>
  <packages type="image" profiles="nginx-config-uwsgi">
    <package name="uwsgi"/>
    <package name="uwsgi-python3"/>
  </packages>
</image>
openSUSE Build Service is sponsored by