paketo-buildpacks / dotnet-core

A Cloud Native Buildpack for .NET Core
Apache License 2.0
45 stars 4 forks source link

Test building Steeltoe sample apps #640

Open sophiewigmore opened 2 years ago

sophiewigmore commented 2 years ago

We currently support a few different types of apps with the .NET Core buildpack, but it would be good to try building some sample applications that might be more reflective of what users in the space are interested in.

This issue is to test building the apps from https://github.com/SteeltoeOSS/Samples and documenting which ones build correctly, and if any of them fail, filing new issues with the failure and link to the app, so we can discover ways to make the buildpack more robust.

fg-j commented 2 years ago

Here's a list of the samples in the repo to explore

fg-j commented 2 years ago

The MusicStore set of microservices work beautifully right out of the box.

In the docker-compose.yml that can be used to stand up the app with all its microservices, we see that there are 4 microservices whose source code live in the this samples directory:

We can pack build each of these by going into their respective directories in src/ and running

pack build <service-name> --builder paketobuildpacks/builder:base

Then, remove/comment out the build: portions of those services' definitions in the docker-compose.yml. Then, running docker-compose up will detect the buildpack-built images present on the daemon and use those as it stands up the microservices! They all seem to Just Work (TM) together. I can even use the admin UI to see that the health check endpoints are working as intended.