Include official plugins and install their gems in discourse_test (#431)

approved
#1

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

GitHub sha: d5d1fb63

1 Like
Approved #2