-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add README for .NET #1420
Add README for .NET #1420
Conversation
Created a staging project on OBS for Tumbleweed: home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-1420 Build ResultsRepository
Repository
Repository
Repository
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:
|
@@ -393,7 +383,7 @@ def _is_latest_dotnet(version: _DOTNET_VERSION_T, os_version: OsVersion) -> bool | |||
os_version=os_version, | |||
version=ver, | |||
name="dotnet-sdk", | |||
pretty_name=f".Net {ver} SDK", | |||
pretty_name=f".NET SDK {ver}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before anyone asks, these are the official names and case styling used by Microsoft.
Created a staging project on OBS for 6: home:defolos:BCI:Staging:SLE-15-SP6:6-1420 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The readme is missing the standard footer & header.
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.
@@ -408,7 +398,7 @@ def _is_latest_dotnet(version: _DOTNET_VERSION_T, os_version: OsVersion) -> bool | |||
version=ver, | |||
name="dotnet-runtime", | |||
is_sdk=False, | |||
pretty_name=f".NET {ver} runtime", | |||
pretty_name=f".NET Runtime {ver}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use sentence style capitalization here and "runtime" suffix is used elsewhere. why do we need to change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are the official names and case styling used by Microsoft.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -432,7 +422,7 @@ def _is_latest_dotnet(version: _DOTNET_VERSION_T, os_version: OsVersion) -> bool | |||
os_version=os_version, | |||
name="dotnet-aspnet", | |||
is_sdk=False, | |||
pretty_name=f"ASP.NET {ver} runtime", | |||
pretty_name=f"ASP.NET Core Runtime {ver}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we use sentence style capitalization here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are the official names and case styling used by Microsoft.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See this for example https://dotnet.microsoft.com/en-us/download/dotnet/8.0
I don't see a reason to use lowercase on the package name, we don't call Apache tomcat, ASP.NET Core Runtime is the entire name, so the image would still be "ASP.NET Core Runtime container image".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easy: follow the capitalization used in the official product name. 😄
src/dotnet/README.md.j2
Outdated
To compile and deploy an application, copy the sources and build the binary: | ||
|
||
```Dockerfile | ||
FROM registry.suse.com/bci/dotnet-sdk:{{ image.version }} AS build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we avoid hardcoding the registry reference here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, what is the best approach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed to use the registry
variable.
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?
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 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.
I don't think that you need to have it in the |
5656e7a
to
f6916f8
Compare
@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. |
@@ -432,7 +422,7 @@ def _is_latest_dotnet(version: _DOTNET_VERSION_T, os_version: OsVersion) -> bool | |||
os_version=os_version, | |||
name="dotnet-aspnet", | |||
is_sdk=False, | |||
pretty_name=f"ASP.NET {ver} runtime", | |||
pretty_name=f"ASP.NET Core Runtime {ver}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easy: follow the capitalization used in the official product name. 😄
db138d2
to
9f5c9a1
Compare
This is related to #993.