Skip to content

Commit

Permalink
Test build for #492
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmueller authored and SUSE Update Bot committed Jul 6, 2023
1 parent 0aa7196 commit 4ceb60b
Show file tree
Hide file tree
Showing 13 changed files with 227 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .obs/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ staging_build:
source_project: home:defolos:BCI:CR:SLE-15-SP5
source_package: distribution-image
target_project: home:defolos:BCI:CR:SLE-15-SP5:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP5
source_package: helm-image
target_project: home:defolos:BCI:CR:SLE-15-SP5:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP5
source_package: rmt-server-image
Expand All @@ -41,10 +45,18 @@ staging_build:
source_project: home:defolos:BCI:CR:SLE-15-SP5
source_package: golang-oldstable-image
target_project: home:defolos:BCI:CR:SLE-15-SP5:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP5
source_package: golang-openssl-oldstable-image
target_project: home:defolos:BCI:CR:SLE-15-SP5:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP5
source_package: golang-stable-image
target_project: home:defolos:BCI:CR:SLE-15-SP5:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP5
source_package: golang-openssl-stable-image
target_project: home:defolos:BCI:CR:SLE-15-SP5:Staging
- branch_package:
source_project: home:defolos:BCI:CR:SLE-15-SP5
source_package: ruby-2.5-image
Expand Down Expand Up @@ -180,6 +192,9 @@ refresh_devel_BCI:
- trigger_services:
project: devel:BCI:SLE-15-SP5
package: distribution-image
- trigger_services:
project: devel:BCI:SLE-15-SP5
package: helm-image
- trigger_services:
project: devel:BCI:SLE-15-SP5
package: rmt-server-image
Expand All @@ -192,9 +207,15 @@ refresh_devel_BCI:
- trigger_services:
project: devel:BCI:SLE-15-SP5
package: golang-oldstable-image
- trigger_services:
project: devel:BCI:SLE-15-SP5
package: golang-openssl-oldstable-image
- trigger_services:
project: devel:BCI:SLE-15-SP5
package: golang-stable-image
- trigger_services:
project: devel:BCI:SLE-15-SP5
package: golang-openssl-stable-image
- trigger_services:
project: devel:BCI:SLE-15-SP5
package: ruby-2.5-image
Expand Down
33 changes: 33 additions & 0 deletions golang-openssl-oldstable-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SPDX-License-Identifier: MIT
#!BuildTag: bci/golang-openssl:oldstable
#!BuildTag: bci/golang-openssl:oldstable-2.%RELEASE%
#!BuildTag: bci/golang-openssl:1.19
#!BuildTag: bci/golang-openssl:1.19-2.%RELEASE%
#!BuildVersion: 15.5.1.19
FROM suse/sle15:15.5

MAINTAINER SUSE LLC (https://www.suse.com/)

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.bci.golang-openssl
LABEL org.opencontainers.image.title="SLE BCI Golang-openssl 1.19"
LABEL org.opencontainers.image.description="Golang-openssl 1.19 container based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="1.19"
LABEL org.opencontainers.image.url="https://www.suse.com/products/server/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
LABEL org.opencontainers.image.source="%SOURCEURL%"
LABEL org.opensuse.reference="registry.suse.com/bci/golang-openssl:1.19-2.%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="l3"
LABEL com.suse.eula="sle-bci"
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
LABEL com.suse.image-type="sle-bci"
LABEL com.suse.release-stage="released"
# endlabelprefix

RUN set -euo pipefail; zypper -n in --no-recommends go1.19-openssl distribution-release make git-core; zypper -n clean; rm -rf /var/log/*
ENV GOLANG_VERSION="%%golang_version%%"
ENV GOPATH="/go"
ENV PATH="/go/bin:/usr/local/go/bin:/root/go/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

7 changes: 7 additions & 0 deletions golang-openssl-oldstable-image/_constraints
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<constraints>
<hardware>
<disk>
<size unit="G">8</size>
</disk>
</hardware>
</constraints>
9 changes: 9 additions & 0 deletions golang-openssl-oldstable-image/_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<services>
<service mode="buildtime" name="docker_label_helper"/>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param>
<param name="regex">%%golang_version%%</param>
<param name="package">go1.19-openssl</param>
</service>
</services>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Jul 06 11:09:54 UTC 2023 - SUSE Update Bot <[email protected]>

- First version of the Golang-openssl 1.19 BCI
34 changes: 34 additions & 0 deletions golang-openssl-stable-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# SPDX-License-Identifier: MIT
#!BuildTag: bci/golang-openssl:stable
#!BuildTag: bci/golang-openssl:stable-1.%RELEASE%
#!BuildTag: bci/golang-openssl:1.20
#!BuildTag: bci/golang-openssl:1.20-1.%RELEASE%
#!BuildTag: bci/golang-openssl:latest
#!BuildVersion: 15.5.1.20
FROM suse/sle15:15.5

MAINTAINER SUSE LLC (https://www.suse.com/)

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.bci.golang-openssl
LABEL org.opencontainers.image.title="SLE BCI Golang-openssl 1.20"
LABEL org.opencontainers.image.description="Golang-openssl 1.20 container based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="1.20"
LABEL org.opencontainers.image.url="https://www.suse.com/products/server/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
LABEL org.opencontainers.image.source="%SOURCEURL%"
LABEL org.opensuse.reference="registry.suse.com/bci/golang-openssl:1.20-1.%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="l3"
LABEL com.suse.eula="sle-bci"
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"
LABEL com.suse.image-type="sle-bci"
LABEL com.suse.release-stage="released"
# endlabelprefix

RUN set -euo pipefail; zypper -n in --no-recommends go1.20-openssl distribution-release make git-core; zypper -n clean; rm -rf /var/log/*
ENV GOLANG_VERSION="%%golang_version%%"
ENV GOPATH="/go"
ENV PATH="/go/bin:/usr/local/go/bin:/root/go/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

7 changes: 7 additions & 0 deletions golang-openssl-stable-image/_constraints
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<constraints>
<hardware>
<disk>
<size unit="G">8</size>
</disk>
</hardware>
</constraints>
9 changes: 9 additions & 0 deletions golang-openssl-stable-image/_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<services>
<service mode="buildtime" name="docker_label_helper"/>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">Dockerfile</param>
<param name="regex">%%golang_version%%</param>
<param name="package">go1.20-openssl</param>
</service>
</services>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Jul 06 11:09:54 UTC 2023 - SUSE Update Bot <[email protected]>

- First version of the Golang-openssl 1.20 BCI
10 changes: 10 additions & 0 deletions helm-image/_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<services>
<service mode="buildtime" name="kiwi_label_helper"/>
<service mode="buildtime" name="kiwi_metainfo_helper"/>
<service name="replace_using_package_version" mode="buildtime">
<param name="file">helm-image.kiwi</param>
<param name="regex">%%helm_version%%</param>
<param name="package">helm</param>
<param name="parse-version">minor</param>
</service>
</services>
30 changes: 30 additions & 0 deletions helm-image/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: (c) 2022-2023 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
4 changes: 4 additions & 0 deletions helm-image/helm-image.changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Jul 06 11:09:54 UTC 2023 - SUSE Update Bot <[email protected]>

- First version of the Kubernetes Package Manager %%helm_version%% BCI
55 changes: 55 additions & 0 deletions helm-image/helm-image.kiwi
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- SPDX-License-Identifier: Apache-2.0 -->

<!-- OBS-AddTag: suse/helm:%%helm_version%% suse/helm:%%helm_version%%-%RELEASE% suse/helm:latest -->
<!-- OBS-Imagerepo: obsrepositories:/ -->

<image schemaversion="6.5" name="helm-image" xmlns:suse_label_helper="com.suse.label_helper">
<description type="system">
<author>SUSE LLC</author>
<contact>https://www.suse.com/</contact>
<specification>SLE Kubernetes Package Manager Container Image</specification>
</description>
<preferences>
<type image="docker" derived_from="obsrepositories:/bci/bci-micro#15.5">
<containerconfig
name="suse/helm"
tag="%%helm_version%%"
maintainer="SUSE LLC (https://www.suse.com/)"
additionaltags="%%helm_version%%-%RELEASE%,latest">
<labels>
<suse_label_helper:add_prefix prefix="com.suse.application.helm">
<label name="org.opencontainers.image.title" value="SLE Kubernetes Package Manager"/>
<label name="org.opencontainers.image.description" value="Kubernetes Package Manager container based on the SLE Base Container Image."/>
<label name="org.opencontainers.image.version" value="%%helm_version%%"/>
<label name="org.opencontainers.image.created" value="%BUILDTIME%"/>
<label name="org.opencontainers.image.vendor" value="SUSE LLC"/>
<label name="org.opencontainers.image.source" value="%SOURCEURL%"/>
<label name="org.opencontainers.image.url" value="https://www.suse.com/products/server/"/>
<label name="org.opensuse.reference" value="registry.suse.com/suse/helm:%%helm_version%%-%RELEASE%"/>
<label name="org.openbuildservice.disturl" value="%DISTURL%"/>
<label name="com.suse.supportlevel" value="techpreview"/>
<label name="com.suse.image-type" value="application"/>
<label name="com.suse.eula" value="sle-bci"/>
<label name="com.suse.release-stage" value="released"/>
<label name="com.suse.lifecycle-url" value="https://www.suse.com/lifecycle#suse-linux-enterprise-server-15"/>
</suse_label_helper:add_prefix>
</labels>
<subcommand execute="help"/>
<entrypoint execute="/usr/bin/helm"/>
</containerconfig>
</type>
<version>15.5.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="ca-certificates-mozilla"/>
<package name="helm"/>
</packages>

</image>

0 comments on commit 4ceb60b

Please sign in to comment.