Bug 37417 - Add ENV variable to download extra packages into ktd container
Summary: Add ENV variable to download extra packages into ktd container
Status: NEW
Alias: None
Product: Project Infrastructure
Classification: Unclassified
Component: Koha Testing Docker (ktd) (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Tomás Cohen Arazi (tcohen)
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-22 08:10 UTC by Michał
Modified: 2024-07-22 08:10 UTC (History)
1 user (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał 2024-07-22 08:10:41 UTC
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!