[Bug 37417] New: Add ENV variable to download extra packages into ktd container
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37417 Bug ID: 37417 Summary: Add ENV variable to download extra packages into ktd container Change sponsored?: --- Product: Project Infrastructure Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Koha Testing Docker (ktd) Assignee: tomascohen@gmail.com Reporter: schodkowy.omegi-0r@icloud.com CC: martin.renvoize@ptfs-europe.com env/defaults.env specifies `EDITOR=vim`, but by default some alternative popular options like `nano` are not installed in the container. To allow some user freedom in changing this without bloating the container image, I propose adding some environment variable that'd install any extra programs at the start-up, which could cover more useful use-cases than just the editor change that prompted the idea. It could just run something like this on startup:
apt-get update && apt-get install -y $(APT_INSTALL_PACKAGES)
...assuming the APT_INSTALL_PACKAGES env var is defined and non-empty (with space-separated list of packages to install), the exact name of the env var is TBD, it doesn't really matter. Note: you need to run apt(-get) update first, otherwise the package lists are going to be outdated, and thus old package versions will be gone from mirrors and result in 404 upon download attempt of packages! -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org