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

Add support for explicitly initializing dotnet and the NuGet package cache #6507

Closed
MichaelSimons opened this issue Jun 24, 2016 · 2 comments
Milestone

Comments

@MichaelSimons
Copy link
Member

This is needed for the .NET Dockerfiles. Within the Dockerfiles, it is desirable to initialize the NuGet package cache so that it doesn't have to be done on first use each time the image is run. Additionally it generates an image layer that is shared by all derived images thus requiring less disk space.

Originally the .NET Dockerfiles where triggering the building of the cache by running the dotnet --version command but that was disabled via https://github.com/dotnet/cli/issues/3533. To workaround this the .NET Dockerfiles now issue a dotnet new but have to first create a directory and cleanup the generated artifacts afterwards. This workaround is less than ideal for a Dockerfile as it is not obvious as to why this is done without having an explicit comment. I presume there are other usages scenarios outside of Docker in which it would be desirable to explicitly trigger the building of the package cache.

@blackdwarf

@MichaelSimons
Copy link
Member Author

@blackdwarf, at one point you had expressed some ideas on how this should be implemented (e.g. a generic utility command). Can you note those ideas here? I would like to work on this when I have some free cycles.

@livarcocc
Copy link
Contributor

Closing this one in favor of https://github.com/dotnet/cli/issues/4919, since the conversation happened over there.

@msftgits msftgits transferred this issue from dotnet/cli Jan 31, 2020
@msftgits msftgits added this to the Backlog milestone Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants