Skip to content

Workhorse: reduce ubi8 size by relocating chown/chgrp

What does this MR do?

Reduce the size of the fimal image for Workhorse by relocating any chown, chmod, or chgrp on built assets from the final image to a build stage.

Impact

image tag size (skopeo) size (docker)
gitlab-workhorse-ee master-ubi8 686,323,732 1,652,115,417
gitlab-workhorse-ee workhorse-reduce-chown-ubi8 442,874,360 1,102,858,126
DIFF 243,449,372 549,257,291
gitlab-workhorse-ee gitlab-base-ubi8* 402,626,268 991,058,829
DIFF (additional) 40,248,092 111,799,297

Two sizes are listed:

  • Skopeo listed the total compresses layer sizes (storage / transit)
  • Docker lists the total uncompressed layer sizes (consumption / usage)

Supplemental: When we change the base image from gitlab-ruby to gitlab-base, we gain that reduction as well.

Related issues

Relates to gitlab-org/charts/gitlab#2973 (closed)

Relates to gitlab-org/charts/gitlab#3268 (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

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Integration tests added to GitLab QA
  • The impact any change in container size has should be evaluated
Edited by Robert Marshall

Merge request reports

Loading