-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
How to use yum when running scripts after setup #2765
Comments
Are you trying to do this in a running container? If so, try connecting as
It looks like you're trying to do this via an entrypoint, though, and I don't think there's an (elegant) way of automating it. Ideally, you want to avoid altering container filesystems and instead introduce changes to the underlying image. (The reason has to do with how containers use overlay filesystems to store changes to their base images. A If the change is a one-off, you could add |
I'm trying to keep the install scripts unchanged and therefore using the "user defined scripts |
I get it. Without |
Change request: I understand but would it then not make sense to create the base images with the |
At face value, that seems to make sense. However, you'll notice that containers are missing packages normally included in base OS installations, including editors and One principle of containerization is that images should include everything needed to run a service and nothing more. Containers typically run at scale via automation, so there's often no requirement to edit files and, thus, no need for an editor. In the case of Think of entrypoints as a means of painting the walls of an apartment, whereas the build is for construction. Using entrypoints to move walls requires extra permissions (permits, inspecting the electrical/plumbing, etc.), makes a lot more mess, and annoys the neighbors. Ideally, you want to build the walls in the right place at the outset. |
You may also find alternative Oracle database repos better suited to your needs. If you don't want to alter the base repo/installation scripts, it includes the option of (among other things) specifying a list of RPMs as part of the image. |
When running a custom script that uses
yum
to install additional packages, I get an error because I'm not root and it is also not possible to use sudo as it is also not installed. What is the proper way to add packages in a custom script?The text was updated successfully, but these errors were encountered: