Include official plugins and install their gems in discourse_test (#431)
authorPenar Musaraj <pmusaraj@gmail.com>
Fri, 14 Jun 2019 12:40:57 +0000 (08:40 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Jun 2019 12:40:57 +0000 (08:40 -0400)
image/discourse_test/Dockerfile

index 3ad4f1659d682a32fe75e4162bb697d34e0478ce..f0fb6dbabfccc899b943bdb08a28d20f54191e0d 100644 (file)
@@ -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