Skip to content
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

Nightly test failure with AOT images #6049

Open
lbussell opened this issue Nov 12, 2024 · 0 comments
Open

Nightly test failure with AOT images #6049

lbussell opened this issue Nov 12, 2024 · 0 comments

Comments

@lbussell
Copy link
Contributor

Error message

 Error loading shared library libstdc++.so.6: No such file or directory (needed by ./app)

Repro steps

My suspicion is that the project template web is not going to work by default for AOT. It should be webapiaot instead. The tests should be updated for this.

Create project:

docker run --name 8.0-create-web-133759161689369714 -w /app --platform linux/amd64 mcr.microsoft.com/dotnet/nightly/sdk:8.0-alpine3.20-aot-amd64 dotnet new web --framework net8.0 --no-restore --exclude-launch-settings

Dockerfile:

 ARG sdk_image
 ARG runtime_image
 ARG runtime_deps_image
 
 FROM $sdk_image AS build
 ARG rid
 ARG InternalAccessToken
 ARG port
 EXPOSE $port
 WORKDIR /source
 COPY NuGet.config .
 
 WORKDIR /source/app
 COPY app/*.csproj .
 RUN dotnet restore -r $rid
 COPY app/ .
 RUN dotnet build --no-restore
 
 
 FROM build AS publish
 ARG rid
 RUN dotnet publish -r $rid -c Release --self-contained true -o out
 
 FROM $runtime_deps_image AS app
 ARG port
 EXPOSE $port
 WORKDIR /app
 COPY --from=publish /source/app/out ./
 ENTRYPOINT ["./app"]

Build image:

docker build -t test --target build --build-arg sdk_image=mcr.microsoft.com/dotnet/nightly/sdk:8.0-alpine3.20-aot-amd64 --build-arg port=8080 --build-arg runtime_deps_image=mcr.microsoft.com/dotnet/nightly/runtime-deps:8.0-alpine3.20-aot-amd64 --build-arg rid=linux-musl-x64 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant