Publish aspnetapp-non-root sample images#4542
Conversation
|
Build error:
Oh no! Our lovely Dockerfile isn't incompatible with our own infrastructure. @richlander - Do you mind if we remove the usage of |
|
That's unfortunate. I referenced that Dockerfile in this post: https://devblogs.microsoft.com/dotnet/improving-multiplatform-container-support/. Should I make a new one that is multi-arch specific and then update the link? |
|
Actually, I think we can get this to work with a small amount of work. @lbussell - The regex used to parse the FROM instruction needs to be updated here in Image Builder: https://github.com/dotnet/docker-tools/blob/e9b03f39e46cbc6527c416af041747ec466c4c86/src/Microsoft.DotNet.ImageBuilder/src/ViewModel/PlatformInfo.cs#L23 It needs to account for a |
|
The build error may be caused by the lack of |
|
The change to the matrix type should not be necessary, nor it is desired. Did my suggestion above not work in your testing? |
|
Build error says I think this is because BuildKit is not enabled by default on the build agents. I think we can workaround this by adding the following to the top of the sample Dockerfile: # syntax=docker/dockerfile:1 |
|
That would be unfortunate to have to add. These images are intended to be best practice and that directive doesn't seem otherwise needed. Certainly, if we need that as a temporary measure, that's fine. |
That's alright, it still doesn't work even with the directive. |
|
I think this will require a change to Image Builder then to explicitly ensure BuildKit is enabled so that it executes commands like this: |
Minor fixes to fix sample build & test Update imagebuilder ahead of dependency flow Add metadata for new images Try platformVersionedOs matrix type Revert "Try platformVersionedOs matrix type" This reverts commit 690aa99. Add customBuildLegGroups for non-root samples Add back dependencies to customBuildLegGroups Add dockerfile syntax directive
|
Still getting the same error. I don't think the buildkit changes have flowed in yet. dotnet/docker-tools#1129 is still open. |
|
New ImageBuilder should come in with #4599. |
|
This is blocked after the need to revert the build kit change in dotnet/docker-tools#1134. That's required in order to finish this work. Since that work is planned for any time soon, we'll just close this for now. |
Fixes #4520