From: Penar Musaraj Date: Fri, 14 Jun 2019 12:40:57 +0000 (-0400) Subject: Include official plugins and install their gems in discourse_test (#431) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d5d1fb63b825a1f2cc5d33c6e0169071084b0fe2;hp=623f10733874815348f603b3968082f169768487;p=discourse_docker.git Include official plugins and install their gems in discourse_test (#431) --- diff --git a/image/discourse_test/Dockerfile b/image/discourse_test/Dockerfile index 3ad4f16..f0fb6db 100644 --- a/image/discourse_test/Dockerfile +++ b/image/discourse_test/Dockerfile @@ -15,8 +15,7 @@ RUN gem update bundler --force &&\ chown -R discourse . &&\ rm -fr .bundle &&\ sudo -u discourse git pull &&\ - sudo -u discourse bundle install --standalone --jobs=4 &&\ - chown -R discourse /var/run/postgresql + sudo -u discourse bundle install --standalone --jobs=4 RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&\ echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list &&\ @@ -27,6 +26,10 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo ap npm install -g eslint babel-eslint &&\ cd /var/www/discourse && sudo -E -u discourse -H yarn install +RUN cd /var/www/discourse && sudo -E -u discourse -H bundle exec rake plugin:install_all_official &&\ + sudo -E -u discourse -H bundle exec rake plugin:install_all_gems &&\ + chown -R discourse /var/run/postgresql + WORKDIR /var/www/discourse ENV LANG en_US.UTF-8 ENTRYPOINT sudo -E -u discourse -H ruby script/docker_test.rb