Improve building and caching process for CNG images
During https://gitlab.com/charts/gitlab/issues/490 I've noticed that we have a lot of duplication in images as well as added layers that can be easily cleaned up. We can also remove a lot of wait time during image builds if we have more base images that are changing less frequently than the GitLab components.
For example, we should have a gitlab-go
base image on top of gitlab-ruby
that can be then reused for images that require go. Similar for git
.
We also can go step further with dividing runtime from build time dependencies, there is still a number of packages that could be cleaned up.
Edited by Marin Jankovski