Automatically install and cache packages
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
For now a developer has to
- install packages manually by calling package manager manually
- take care of caching of installed packages manually
- since installed packages are not in current project folder and the folders out of it are not cached, take care to move them there
IMHO it may make sense to configure it .gitlab-ci.yml declaratively and gitlab-ci should care ahout it itself. I just enumerate the needed packages, and gitlab-ci
- restores the cached installations
- uses some overlay FS to put the additions to docker image somewhere caused by packages installation somewhere
- calls the package manager itself. Package manager name is key of the mapping, the value is a mapping containing packages and their versions as keys and values are additional arguments for a package manager.
- caches the files introduced by installation
Links / references
Edited by 🤖 GitLab Bot 🤖