Skip to content

Conversation

@lbussell
Copy link
Member

@lbussell lbussell commented Aug 15, 2023

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.

@ghost ghost added area-dockerfiles Concerns the official .NET Dockerfiles or Dockerfile templates untriaged labels Aug 15, 2023
@lbussell lbussell force-pushed the aot branch 2 times, most recently from 16ad9a5 to 4a505fe Compare August 16, 2023 17:33
@lbussell lbussell marked this pull request as ready for review August 22, 2023 16:45
@lbussell lbussell requested a review from a team as a code owner August 22, 2023 16:45
Copy link
Member

@mthalman mthalman left a 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.

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
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

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.

@lbussell
Copy link
Member Author

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.

@lbussell lbussell requested a review from mthalman September 1, 2023 16:49
@lbussell lbussell merged commit c5ea6eb into dotnet:nightly Sep 1, 2023
@lbussell lbussell deleted the aot branch July 16, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-dockerfiles Concerns the official .NET Dockerfiles or Dockerfile templates untriaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants