SUSE / BCI-dockerfile-generator

7 stars 19 forks source link

Add README for .NET #1420

Closed alexandrevicenzi closed 1 month ago

alexandrevicenzi commented 1 month ago

This is related to #993.

github-actions[bot] commented 1 month ago

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

Build Results Repository `images` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- kiwi-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420/kiwi-image/images/x86_64) Repository `images` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- kiwi-image | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420/kiwi-image/images/aarch64) Repository `containerfile` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- kiwi-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420/kiwi-image/containerfile/x86_64) Repository `containerfile` in [home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- kiwi-image | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420/kiwi-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-1420/ tox -- -n auto
The following images can be pulled from the staging project: - `registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-1420/containerfile/opensuse/bci/kiwi`

⚠️⚠️ Project and Branch have been deleted ⚠️⚠️ ⚠️⚠️ Project and Branch have been deleted ⚠️⚠️ ⚠️⚠️ Project and Branch have been deleted ⚠️⚠️

github-actions[bot] commented 1 month ago

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

Build Results Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1420) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- aspnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-6.0/images/x86_64) aspnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-8.0/images/x86_64) dotnet-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-6.0/images/x86_64) dotnet-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-8.0/images/x86_64) dotnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-6.0/images/x86_64) dotnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-8.0/images/x86_64) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1420) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- aspnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-6.0/images/aarch64) aspnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-8.0/images/aarch64) dotnet-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-6.0/images/aarch64) dotnet-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-8.0/images/aarch64) dotnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-6.0/images/aarch64) dotnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-8.0/images/aarch64) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1420) for `s390x`: current state: published Build results: package name | status | build log -------------|--------|---------- aspnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-6.0/images/s390x) aspnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-8.0/images/s390x) dotnet-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-6.0/images/s390x) dotnet-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-8.0/images/s390x) dotnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-6.0/images/s390x) dotnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-8.0/images/s390x) Repository `images` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1420) for `ppc64le`: current state: published Build results: package name | status | build log -------------|--------|---------- aspnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-6.0/images/ppc64le) aspnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-8.0/images/ppc64le) dotnet-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-6.0/images/ppc64le) dotnet-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-8.0/images/ppc64le) dotnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-6.0/images/ppc64le) dotnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-8.0/images/ppc64le) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1420) for `x86_64`: current state: published Build results: package name | status | build log -------------|--------|---------- aspnet-runtime-6.0 | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-6.0/containerfile/x86_64) aspnet-runtime-8.0 | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-8.0/containerfile/x86_64) dotnet-6.0 | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-6.0/containerfile/x86_64) dotnet-8.0 | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-8.0/containerfile/x86_64) dotnet-runtime-6.0 | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-6.0/containerfile/x86_64) dotnet-runtime-8.0 | ✅ succeeded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-8.0/containerfile/x86_64) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1420) for `aarch64`: current state: published Build results: package name | status | build log -------------|--------|---------- aspnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-6.0/containerfile/aarch64) aspnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-8.0/containerfile/aarch64) dotnet-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-6.0/containerfile/aarch64) dotnet-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-8.0/containerfile/aarch64) dotnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-6.0/containerfile/aarch64) dotnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-8.0/containerfile/aarch64) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1420) for `s390x`: current state: published Build results: package name | status | build log -------------|--------|---------- aspnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-6.0/containerfile/s390x) aspnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-8.0/containerfile/s390x) dotnet-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-6.0/containerfile/s390x) dotnet-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-8.0/containerfile/s390x) dotnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-6.0/containerfile/s390x) dotnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-8.0/containerfile/s390x) Repository `containerfile` in [home:defolos:BCI:Staging:SLE-15-SP6:6-1420](https://build.opensuse.org/project/show/home:defolos:BCI:Staging:SLE-15-SP6:6-1420) for `ppc64le`: current state: published Build results: package name | status | build log -------------|--------|---------- aspnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-6.0/containerfile/ppc64le) aspnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/aspnet-runtime-8.0/containerfile/ppc64le) dotnet-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-6.0/containerfile/ppc64le) dotnet-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-8.0/containerfile/ppc64le) dotnet-runtime-6.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-6.0/containerfile/ppc64le) dotnet-runtime-8.0 | ⛔ excluded | [live log](https://build.opensuse.org/package/live_build_log/home:defolos:BCI:Staging:SLE-15-SP6:6-1420/dotnet-runtime-8.0/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-1420/ tox -- -n auto
The following images can be pulled from the staging project: - `registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1420/containerfile/bci/dotnet-aspnet` - `registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1420/containerfile/bci/dotnet-runtime` - `registry.opensuse.org/home/defolos/bci/staging/sle-15-sp6/6-1420/containerfile/bci/dotnet-sdk`
alexandrevicenzi commented 1 month ago

The readme is missing the standard footer & header.

Yes, because .NET does not belong in bci_build. I have no way of reusing templates from there and I would need to duplicate it, create some hackery, or move .NET into bci_build as a package like others.

What do you suggest @dcermak @dirkmueller?

Also, would it make it sense to have separate templates for the images? The current template looks more like three templates with a bit of common content.

Yes, it could be split, but again, it needs a bit more hackery to get it working, unless it becomes a bci_build package.

dcermak commented 1 month ago

The readme is missing the standard footer & header.

Yes, because .NET does not belong in bci_build. I have no way of reusing templates from there and I would need to duplicate it, create some hackery, or move .NET into bci_build as a package like others.

What do you suggest @dcermak @dirkmueller?

I haven't tried this, but I think the following should work:

then the standard readme reading code should pick it up and you should have access to additional footer & headers.

Also, would it make it sense to have separate templates for the images? The current template looks more like three templates with a bit of common content.

Yes, it could be split, but again, it needs a bit more hackery to get it working, unless it becomes a bci_build package.

I don't think that you need to have it in the bci_build package for the template reader to pick it up.

alexandrevicenzi commented 1 month ago

@dcermak no hackery needed. It seems that the template is picked from the correct place. I also split into multiple templates and created a few partials to be imported where text was duplicated.