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

Need sample that shows the installation of additional packages in chiseled scenarios #4811

Closed
mthalman opened this issue Aug 10, 2023 · 7 comments

Comments

@mthalman
Copy link
Member

Installing additional packages into a chiseled container is not a straightforward task due to the lack of a shell. The only documentation that exists currently which illustrates how to do this is at rockcrafters/dotnet#21 (comment). We should clean that up and include that in our samples.

We then should update the link here to reference this new sample.

@mthalman
Copy link
Member Author

The need for this is exemplified by dotnet/core#8663.

Depending on the outcome of #4804, we should use icu as the example of what to install. If we end up producing images with icu, then that would be irrelevant and can target a different commonly used package instead.

@richlander
Copy link
Member

I suggest we disconnect the icu conversation from this one. It's possible that we'll fully cover the ICU space. As you've raised, there is still tzdata and many other libraries that people might want.

I suggest you create a sample for icu and tzdata. That's relevant now. Perhaps, we'll removed icu from it later.

@mthalman
Copy link
Member Author

The documentation should include notes on identifying that the desired package is defined as a slice and using it via chisel. And also handle a scenario where the desired package is not defined as a slice and describe how to include it via regular package installation.

@lbussell lbussell moved this from Backlog to Sprint in .NET Docker Oct 12, 2023
@lbussell lbussell self-assigned this Oct 24, 2023
@lbussell lbussell moved this from Sprint to In Progress in .NET Docker Oct 24, 2023
@lbussell lbussell moved this from In Progress to Sprint in .NET Docker Oct 26, 2023
@tboby
Copy link

tboby commented Nov 9, 2023

Are there any samples in issues or docs which demonstrate how to add extra packages using the new chisel-wrapper and update the dpkg/status file?

It looks like the tooling has changed since the decision to provide ICU as an official build was made, so all the discussions don't seem to quite line up anymore!

Context: I'm looking to add dependencies for OpenCvSharp

@mthalman
Copy link
Member Author

mthalman commented Nov 9, 2023

@tboby - We're following up on that at rockcrafters/dotnet#21 (comment). Ultimately, we believe such documentation should be provided in a repo outside the context of just .NET as it is more of a fundamental issue between Chisel and container images in general.

@lbussell
Copy link
Contributor

lbussell commented May 2, 2024

There is a new issue for tracking this request on the chisel repo: canonical/chisel#118

@lbussell
Copy link
Contributor

lbussell commented Feb 3, 2025

Completed with #6187.

Currently this only applies to .NET 10+ images. If you would like this to be backported to .NET 8 and 9 images, please show your support on this other issue: Add Chisel Manifest to .NET 8 and .NET 9 Ubuntu Chiseled images (#6193).

@lbussell lbussell closed this as completed Feb 3, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in .NET Docker Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

5 participants