Skip to content

Install gzip into gitlab-rails containers

Matthias Käppler requested to merge mk-add-gzip-to-rails-images into master

What does this MR do?

In gitlab-org/gitlab!105115 (merged) we are adding a compression step via gzip to write smaller diagnostic report files to disk. The Rails image already had gzip installed (probably available by default?) but I think it would be good practice to make sure this remains installed should we decide to shrink the base image elsewhere.

It will also provide a reference point in case we want to swap out gzip for something more powerful such as zstd.

NOTE: Diagnostic reports are currently a SaaS-only feature. It is not part of Omnibus. There are no plans currently to make it more widely available either.

Related issues

gitlab-org/gitlab#370077 (closed)

Test plan

Download gitlab-rails container built from this MR and e.g. run docker run --rm -t <image> which gzip

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

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • [-] Documentation created/updated (not a documented feature)
  • [-] Integration tests added to GitLab QA
  • The impact any change in container size has should be evaluated. gzip is already installed: docker run --rm -t registry.gitlab.com/gitlab-org/build/cng/gitlab-rails which gzip
Edited by Matthias Käppler

Merge request reports