See if `app/assets` can be excluded from gitlab-rails
Summary
We already exclude some aspects of gitlab-rails
when building https://gitlab.com/gitlab-org/omnibus-gitlab/blob/10.5.2+ce.0/config/software/gitlab-rails.rb#L177
See if app/assets
and vendor/assets
can also be excluded.
Proposal
Exclude app/assets
and vendor/assets
as they seem to be the source files for asset compilation. By not including these source directories we can save ~21Mb:
$ du -sh /opt/gitlab/embedded/service/gitlab-rails/{app,vendor}/assets
19M /opt/gitlab/embedded/service/gitlab-rails/app/assets
3.4M /opt/gitlab/embedded/service/gitlab-rails/vendor/assets
I'm not 100% sure if they aren't used - would need to try it, or get more rails knowledge.
References
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/10.5.2+ce.0/config/software/gitlab-rails.rb#L177