-
Notifications
You must be signed in to change notification settings - Fork 1
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
Initial implementation #2
Conversation
…ng behavior to provide clearer logging
@ForestEckhardt its been a bit so I forgot some context- could you remind me why it's preferable to check the |
@sophiewigmore We check it at build because this buildpack will now run after |
Ahhh yes, thank you |
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.
Mostly nitpicks, but a couple of key questions:
- the name of the buildpack
- the priority order of version resolution
Co-authored-by: Frankie G-J <frankieg@vmware.com>
Co-authored-by: Frankie G-J <frankieg@vmware.com>
instead of indexing into image.Buildpacks array
buildpack.toml
Outdated
name = "ASP.NET Core Runtime" | ||
licenses = ["MIT", "MIT-0"] | ||
purl = "pkg:generic/dotnet-aspnetcore@3.1.28?checksum=a3fe5848d88dc67cbfceaf0b8e6d3e1178f8441bfedbb21861b2e72fdee3f28d&download_url=https://download.visualstudio.microsoft.com/download/pr/effaa5bf-0fa7-4e5a-9ce8-9ac04ee86669/5afb2b1c2ad68550cec914d8fb303d20/aspnetcore-runtime-3.1.28-linux-x64.tar.gz" | ||
sha256 = "a3fe5848d88dc67cbfceaf0b8e6d3e1178f8441bfedbb21861b2e72fdee3f28d" |
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.
should we switch to using checksum
+ the published SHA512 now that it's possible in jam and packit?
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.
or do you want to defer that to a subsequent PR?
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 can take a quick crack at it.
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.
@ForestEckhardt I just experimented with combining this buildpack with the existing rearchitecture spike, and I'm seeing the running app fail to locate the ASP.NET Core runtime, even though the runtime is present in a layer on the app image. The app fails to start with:
docker run -it --rm --env PORT=8080 test-rearch
Setting ASPNETCORE_URLS=http://0.0.0.0:8080
You must install .NET to run this application.
App: /workspace/source-app
Architecture: x64
App host version: 6.0.9
.NET location: Not found
Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.18.04-x64&apphost_version=6.0.9
However, running
DOTNET_ROOT=/layers/paketo-buildpacks_dotnet-core-aspnet-runtime/dotnet-core-aspnet-runtime /workspace/source-app
inside the container makes the app start as expected. I believe this buildpack must set DOTNET_ROOT
.
@fg-j After our short investigation is appears that the |
@ForestEckhardt @fg-j I'm surprised that |
@sophiewigmore It have to do with how FDE works. Because we are not invoking the However because of our restructure we can get away with using the |
@ForestEckhardt thank you! that makes sense |
@fg-j are you able to re-test with the changes here since you have the re-architecture spike pulled already? Assuming that works now, this PR looks good to me |
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've verified that with the new changes setting DOTNET_ROOT
, the buildpack now integrates as expected with the other language family buildpacks. I've built and run source apps, FDDs, FDEs, and self-contained apps successfully.
Resolves #1
Checklist