Commit 89b669f1 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Update mimemagic gem; remove unneeded files to save space

parent ffd488ef
......@@ -31,6 +31,7 @@ all: database-config
mkdir gitlab-home
tar xf gitlab-foss-v13.1.0.tar.bz2 -C /srv/www --strip-components=1
patch -Np1 -d /srv/www < gitlab-foss-v13.1.0-gems_update.patch
rm -rf /srv/www/index.html
cd /srv/www && mv config/gitlab.yml.example config/gitlab.yml
......@@ -55,6 +56,11 @@ all: database-config
cd /srv/www && HOME=$(CURDIR)/gitlab-home bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production NODE_OPTIONS="--max-old-space-size=3072"
rm -rf /usr/local/share/.yarnrc
rm -rf /srv/www/tmp/cache/*
rm -rf /srv/www/vendor/bundle/ruby/*/gems/nokogumbo-*/ext/nokogumboc/tmp
rm -rf /srv/www/vendor/bundle/ruby/*/gems/graphiql-rails-*/test/dummy/tmp
find /srv/www -name *.gz -exec rm -f '{}' ';'
find / -name *.gem -exec rm -f '{}' ';'
find / -name *.pyc -exec rm -f '{}' ';'
find / -name *.js.map -exec rm -f '{}' ';'
find / -name *.css.map -exec rm -f '{}' ';'
......
diff -uNr gitlab-foss-v13.1.0/Gemfile.lock gitlab-foss-v13.1.0-gems_update/Gemfile.lock
--- gitlab-foss-v13.1.0/Gemfile.lock 2020-06-20 02:15:52.000000000 +0930
+++ gitlab-foss-v13.1.0-gems_update/Gemfile.lock 2021-03-26 23:01:59.989671194 +1030
@@ -630,7 +630,9 @@
mime-types (3.2.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2019.0331)
- mimemagic (0.3.5)
+ mimemagic (0.3.9)
+ nokogiri (~> 1)
+ rake
mini_histogram (0.1.3)
mini_magick (4.9.5)
mini_mime (1.0.2)
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