-
Notifications
You must be signed in to change notification settings - Fork 2k
Add native AOT runtime-deps and sdk variants #4822
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
Conversation
16ad9a5 to
4a505fe
Compare
src/runtime-deps/8.0/cbl-mariner2.0-distroless/arm64v8/Dockerfile
Outdated
Show resolved
Hide resolved
mthalman
left a comment
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.
My meta-review comment is "let's be sure to avoid including changes in this PR that we want in main" because AOT won't be getting merged to main.
src/runtime-deps/8.0/cbl-mariner2.0-distroless/arm64v8/Dockerfile
Outdated
Show resolved
Hide resolved
This reverts commit 3990cbd.
| ARG REPO=mcr.microsoft.com/dotnet/sdk | ||
| FROM $REPO:8.0.100-rc.1-jammy-arm64v8 | ||
|
|
||
| COPY <<EOF /etc/apt/sources.list.d/amd64.list |
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.
Do we have a general agreement that HereDocs should be used? If so what is the thought on when it should be used? I would expect consistent usage of it - e.g. in RUN instructions as well. Making consistent use is beyond the scope of this PR but given the introduction of it here we should establish an agreed upon direction and log follow-ups tracking this work.
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.
Thanks for bringing this up. I tried heredocs for RUN instructions but they don't play nice with line endings with Git for Windows' default behavior (checkout as CRLF and commit as LF). It creates some really strange errors.
Because of that I'd probably lean towards switching this command to using echo instead, to keep everything consistent.
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 agree that sounds best for now.
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 noticed the same thing. You have to do unix-style to use heredocs.
Line endings are the most annoying (at least obvious) difference between Windows and unix-style. More so than slash/backslash.
|
This PR and #4847 have significant overlap in the templates. I'd like to wait until that is merged first before merging this one so that the merge of that PR to main is less complicated. |
Please see #4129 and #4804
I am currently working on the tests for these images.After discussion, tests will be included in a separate PR.