SUSE / BCI-dockerfile-generator

7 stars 19 forks source link

Drop the super ugly SLE15 hack and use a custom class instead #1385

Closed dcermak closed 1 month ago

dcermak commented 1 month ago

Proposal so that we don't have to use a super ugly hack in the code

github-actions[bot] commented 1 month ago

Created a staging project on OBS for 5: home:defolos:BCI:Staging:SLE-15-SP5:5-1385 Changes pushed to branch 5-1385 as commit dd3c21673dd8399c57d24afd20b85f7870dc5926 Build succeeded ✅

Build Results Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP5:5-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP5:5-1385) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP5:5-1385/sles15-image/images/x86_64) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP5:5-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP5:5-1385) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP5:5-1385/sles15-image/images/aarch64) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP5:5-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP5:5-1385) for `s390x`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP5:5-1385/sles15-image/images/s390x) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP5:5-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP5:5-1385) for `ppc64le`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP5:5-1385/sles15-image/images/ppc64le) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP5:5-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP5:5-1385) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP5:5-1385/sles15-image/containerfile/x86_64) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP5:5-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP5:5-1385) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP5:5-1385/sles15-image/containerfile/aarch64) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP5:5-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP5:5-1385) for `s390x`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP5:5-1385/sles15-image/containerfile/s390x) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP5:5-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP5:5-1385) for `ppc64le`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP5:5-1385/sles15-image/containerfile/ppc64le)

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=15.5 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp5/5-1385/ tox -- -n auto
The following images can be pulled from the staging project: - `registry.opensuse.org/home/defolos/bci/staging/sle-15-sp5/5-1385/images/bci/bci-base` - `registry.opensuse.org/home/defolos/bci/staging/sle-15-sp5/5-1385/images/suse/sle15`
github-actions[bot] commented 1 month ago

Created a staging project on OBS for 6: home:defolos:BCI:Staging:SLE-15-SP6:6-1385 Changes pushed to branch 6-1385 as commit 0884179a40897871f51d9e724820f2d55c7be7ff Build succeeded ✅

Build Results Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1385) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1385/sles15-image/images/x86_64) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1385) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1385/sles15-image/images/aarch64) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1385) for `s390x`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1385/sles15-image/images/s390x) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1385) for `ppc64le`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1385/sles15-image/images/ppc64le) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1385) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1385/sles15-image/containerfile/x86_64) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1385) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1385/sles15-image/containerfile/aarch64) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1385) for `s390x`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1385/sles15-image/containerfile/s390x) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1385) for `ppc64le`: current state: published Build results: package name | status | build log -------------|--------|---------- sles15-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1385/sles15-image/containerfile/ppc64le)

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=15.6 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1385/ tox -- -n auto
The following images can be pulled from the staging project: - `registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1385/images/bci/bci-base` - `registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1385/images/suse/sle15`
github-actions[bot] commented 1 month ago

Created a staging project on OBS for Tumbleweed: home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385 Changes pushed to branch Tumbleweed-1385 as commit 84e310ad5416d04619c3a28ee84aef7464629efc Build succeeded ✅

Build Results Repository `images` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- busybox-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/busybox-image/images/x86_64) distribution-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/distribution-image/images/x86_64) git-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/git-image/images/x86_64) helm-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/helm-image/images/x86_64) micro-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/micro-image/images/x86_64) minimal-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/minimal-image/images/x86_64) trivy-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/trivy-image/images/x86_64) Repository `images` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- busybox-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/busybox-image/images/aarch64) distribution-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/distribution-image/images/aarch64) git-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/git-image/images/aarch64) helm-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/helm-image/images/aarch64) micro-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/micro-image/images/aarch64) minimal-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/minimal-image/images/aarch64) trivy-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/trivy-image/images/aarch64) Repository `containerfile` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- busybox-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/busybox-image/containerfile/x86_64) distribution-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/distribution-image/containerfile/x86_64) git-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/git-image/containerfile/x86_64) helm-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/helm-image/containerfile/x86_64) micro-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/micro-image/containerfile/x86_64) minimal-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/minimal-image/containerfile/x86_64) trivy-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/trivy-image/containerfile/x86_64) Repository `containerfile` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- busybox-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/busybox-image/containerfile/aarch64) distribution-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/distribution-image/containerfile/aarch64) git-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/git-image/containerfile/aarch64) helm-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/helm-image/containerfile/aarch64) micro-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/micro-image/containerfile/aarch64) minimal-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/minimal-image/containerfile/aarch64) trivy-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1385/trivy-image/containerfile/aarch64)

Build succeeded ✅

To run BCI-tests against this PR, use the following command:

OS_VERSION=tumbleweed TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1385/ tox -- -n auto
The following images can be pulled from the staging project: - `registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1385/images/opensuse/bci/bci-busybox` - `registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1385/images/opensuse/bci/bci-micro` - `registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1385/images/opensuse/bci/bci-minimal` - `registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1385/images/opensuse/git` - `registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1385/images/opensuse/helm` - `registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1385/images/opensuse/registry` - `registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1385/images/opensuse/trivy`
dirkmueller commented 1 month ago

I've merged the idea of a subclass into #1220 , thanks!