Commit ca049f99 authored by Richard Clamp's avatar Richard Clamp
Browse files

Exclude source assets from final package

app/assets, ee/app/assets, and vendor/assets are source directories used
by the rails asset pipeline, the compiled outputs in `public/assets` are
all that we need to ship to an end-user

Should save ~23Mb based on gitlab-ee@7732acd

    $ du -shc app/assets ee/app/assets vendor/assets
     17M    app/assets
    2.5M    ee/app/assets
    3.3M    vendor/assets
     23M    total

http://guides.rubyonrails.org/asset_pipeline.html
https://gitlab.com/gitlab-org/gitlab-ee/blob/7732acd111e63dfb46075e684ae33e025b2f6f0c/config/application.rb#L116
parent b1f4734e
......@@ -7,6 +7,7 @@ omnibus-gitlab repository.
- Upgrade Ruby version to 2.3.7
- Bump git to 2.16.3
- Excludes source assets from gitlab-rails component. #3238
10.7.0
......
......@@ -174,7 +174,17 @@ build do
copy 'ee/db/geo/schema.rb', 'ee/db/geo/schema.rb.bundled' if EE
command "mkdir -p #{install_dir}/embedded/service/gitlab-rails"
sync './', "#{install_dir}/embedded/service/gitlab-rails/", exclude: ['.git', '.gitignore', 'spec', 'features', 'qa', 'rubocop']
sync './', "#{install_dir}/embedded/service/gitlab-rails/", exclude: %w(
.git
.gitignore
spec
features
qa
rubocop
app/assets
vendor/assets
ee/app/assets
)
# This directory will be deleted after all the licenses copied to it are
# handled by the DependencyInformation task of omnibus. It won't be part
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment