Run `bundle install` with 4 jobs.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Sat, 20 Apr 2019 01:03:19 +0000 (09:03 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Sat, 20 Apr 2019 01:03:41 +0000 (09:03 +0800)
image/base/Dockerfile
image/discourse_test/Dockerfile

index 6e820846856557cf59b82ef777260d599f194dd2..c667f91bad4fab1a1803b38eaa773ce34501c731 100644 (file)
@@ -139,6 +139,6 @@ RUN useradd discourse -s /bin/bash -m -U &&\
     chown -R discourse:discourse /var/www/discourse &&\
     cd /var/www/discourse &&\
     sudo -u discourse bundle install --deployment \
-         --without test --without development &&\
+         --without test --without development --jobs=4 &&\
     bundle exec rake maxminddb:get &&\
     find /var/www/discourse/vendor/bundle -name tmp -type d -exec rm -rf {} +
index 93777acf16f11a86925405aa9576032144772503..fa6453108fe20fa649ef3a8003379ba5d33342f6 100644 (file)
@@ -14,7 +14,7 @@ RUN gem update bundler --force &&\
       chown -R discourse . &&\
       rm -fr .bundle &&\
       sudo -u discourse git pull &&\
-      sudo -u discourse bundle install --standalone &&\
+      sudo -u discourse bundle install --standalone --jobs=4 &&\
       chown -R discourse /var/run/postgresql
 
 RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&\