Install Gitaly dependencies for project archiving
What does this MR do?
Install Gitaly dependencies for project archiving
Install tar, gzip and bzip2 into final Gitaly image.
Fixes empty bzip archives when a project is exported.
Changelog: fixed
- Issue occurred in: https://gitlab.com/gitlab-org/charts/gitlab/-/jobs/5554264567
- Original cause: Use GitLab base image as Gitaly base (!1584 - merged)
- Related Gitaly code: https://gitlab.com/gitlab-org/gitaly/-/blob/e66f6ec5ad5b47cb43e69a4690c3e9e1a9a49b4e/internal/gitaly/service/repository/archive.go#L105
Note: tar and gzip are already installed, but I think we should explicitly add them to the list to make sure they are installed even if the base image changes.
Related issues
Closes #817 (closed)
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
-
Merge Request Title, and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com -
When ready for review, MR is labeled "~workflow::ready for review" per the Distribution MR workflow
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes - Install a chart with the master images
- Create a project
- Export the project as .tar.bz
- Confirm a 0 bytes archive gets created
- Upgrade to these images
- Export the project as .tar.bz
- Confirm a non empty archive gets created
-
Documentation created/updated -
Integration tests added to GitLab QA -
The impact any change in container size has should be evaluated -
New dependencies are managed with dependencies.io
Edited by Clemens Beck