-
Notifications
You must be signed in to change notification settings - Fork 46
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
Guide on adding third-party packages to chiseled base image. #118
Comments
Hi John. The geoipupdate package seems to be in the Ubuntu archives as well: listed here. If you are planning to install from the Ubuntu archives, it can be chiselled. Looking at the contents, it shouldn't probably be tough either to do so. You can then install the slices directly using chisel. However, if you are planning on using the deb downloaded from the Github Release, I am afraid there is no mechanism to chisel that deb. If you want to install the deb on top of your chiselled image, you might need And for cron, you can chisel the package and install it in your chiselled file system. Please let me know what you plan to do and if you have more questions. Cheers. |
Where are the steps to know how to chisel a package from the ubuntu archive? How do you find out what slices are in a package? The main problem with using dpkg using a docker RUN command, is that it attempts to use a shell to execute the command. |
The issue you linked to contains some guidance in this comment: rockcrafters/dotnet#21 (comment)
You should make sure you are using the "exec" form for RUN instructions and not the "shell" form when using distroless/Chiseled images. |
@lbussell it does not answer my question, on how you find out the names to use for slices in the chisel command. |
There are no predefined rules to be honest. Typically, we list the libraries (examples: You might also need to define some slices of your own if such cases arise. For example, if you are building a very minimal slice which contains the very minimal files yet works, you might put those inside a It would be best if you skim over some existing slice definition files available in the chisel-releases repo and take inspirations from there. |
Ok, so slice yaml files are manually created by hand, they are not generated with a utility? If we create custom slices, how do we get chisel to see them and use them? Is there a specific location it looks for all slices? |
Yup, they are manually created by hand, as of now. We did think about an utility which suggests slices, but it's not in the plans yet.
Ideally, you would want your slices to end up in the chisel-releases repo. Then you can use the |
Hi @rebornplusplus, I already asked here, but want to fix it faster, maybe you know the solution. Is there a way to use slice configs on ubuntu-22.04, which are written for ubuntu-23.04?
|
Oh hi again, replied there! |
Our containers depend on the geoipupdate utility to keep the MaxMind database fresh on the container. How can we install the deb package in our image that is based on chiseled image? When we have the
RUN dpkg -i /geoipupdate.deb
in the docker file, we get afailed to solve: process "/bin/sh -c dpkg -i /geoipupdate.deb" did not complete successfully
error during build. This also relies on cron to run the utility on a schedule.The text was updated successfully, but these errors were encountered: