From 7087639f3e57723dd3cc5f87c0d68f27fa8c7894 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Sat, 20 Apr 2019 09:03:19 +0800 Subject: [PATCH] Run `bundle install` with 4 jobs. --- image/base/Dockerfile | 2 +- image/discourse_test/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/image/base/Dockerfile b/image/base/Dockerfile index 6e82084..c667f91 100644 --- a/image/base/Dockerfile +++ b/image/base/Dockerfile @@ -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 {} + diff --git a/image/discourse_test/Dockerfile b/image/discourse_test/Dockerfile index 93777ac..fa64531 100644 --- a/image/discourse_test/Dockerfile +++ b/image/discourse_test/Dockerfile @@ -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 - &&\ -- 2.25.1