Skip to content

8.0 rc1 SDK ContainerFamily=alpine goes looking for non-existing Alpine tag #35848

Open
@tmds

Description

When publishing a container image with the rc1 SDK and setting the ContainerFamily to alpine, the SDK goes looking for a 8.0.0-rc.1-alpine tag which does not exist:

$ dotnet publish /p:ContainerFamily=alpine /p:PublishProfile=DefaultContainer
MSBuild version 17.8.0-preview-23418-03+0125fc9fb for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(311,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/tmp/web6/web6.csproj]
  web6 -> /tmp/web6/bin/Release/net8.0/web6.dll
  web6 -> /tmp/web6/bin/Release/net8.0/publish/
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Containers/build/Microsoft.NET.Build.Containers.targets(200,5): error MSB4018: The "CreateNewImage" task failed unexpectedly. [/tmp/web6/web6.csproj]
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Containers/build/Microsoft.NET.Build.Containers.targets(200,5): error MSB4018: System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found). [/tmp/web6/web6.csproj]
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Containers/build/Microsoft.NET.Build.Containers.targets(200,5): error MSB4018:    at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() in /_/src/runtime/artifacts/source-build/self/src/src/libraries/System.Net.Http/src/System/Net/Http/HttpResponseMessage.cs:line 165 [/tmp/web6/web6.csproj]
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Containers/build/Microsoft.NET.Build.Containers.targets(200,5): error MSB4018:    at Microsoft.NET.Build.Containers.DefaultManifestOperations.GetAsync(String repositoryName, String reference, CancellationToken cancellationToken) in /_/src/sdk/artifacts/source-build/self/src/src/Containers/Microsoft.NET.Build.Containers/Registry/DefaultManifestOperations.cs:line 30 [/tmp/web6/web6.csproj]
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Containers/build/Microsoft.NET.Build.Containers.targets(200,5): error MSB4018:    at Microsoft.NET.Build.Containers.Registry.GetImageManifestAsync(String repositoryName, String reference, String runtimeIdentifier, String runtimeIdentifierGraphPath, CancellationToken cancellationToken) in /_/src/sdk/artifacts/source-build/self/src/src/Containers/Microsoft.NET.Build.Containers/Registry/Registry.cs:line 108 [/tmp/web6/web6.csproj]
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Containers/build/Microsoft.NET.Build.Containers.targets(200,5): error MSB4018:    at Microsoft.NET.Build.Containers.Tasks.CreateNewImage.ExecuteAsync(CancellationToken cancellationToken) in /_/src/sdk/artifacts/source-build/self/src/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImage.cs:line 62 [/tmp/web6/web6.csproj]
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Containers/build/Microsoft.NET.Build.Containers.targets(200,5): error MSB4018:    at Microsoft.NET.Build.Containers.Tasks.CreateNewImage.Execute() in /_/src/sdk/artifacts/source-build/self/src/src/Containers/Microsoft.NET.Build.Containers/Tasks/CreateNewImage.cs:line 36 [/tmp/web6/web6.csproj]
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Containers/build/Microsoft.NET.Build.Containers.targets(200,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/tmp/web6/web6.csproj]
/usr/lib64/dotnet/sdk/8.0.100-rc.1.23455.1/Containers/build/Microsoft.NET.Build.Containers.targets(200,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/tmp/web6/web6.csproj]

These rc1 tags are present for Alpine:

8.0.0-rc.1-alpine3.18
8.0.0-rc.1-alpine3.18-amd64
8.0.0-rc.1-alpine3.18-arm32v7
8.0.0-rc.1-alpine3.18-arm64v8
8.0.0-rc.1-alpine3.18-extra
8.0.0-rc.1-alpine3.18-extra-amd64
8.0.0-rc.1-alpine3.18-extra-arm32v7
8.0.0-rc.1-alpine3.18-extra-arm64v8

There is an 8.0 tag for alpine (without rc.1 in its name):

8.0-alpine

cc @baronfel

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Area-ContainersRelated to dotnet SDK containers functionalityBuguntriagedRequest triage from a team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions