From 0a97cd9d8acae16b69027bdfd5b8a40a0829e754 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 13 Jul 2022 17:16:26 +0100 Subject: [PATCH] FIX: Run `yarn install` when building development image (#638) The rails app now leans on JS dependencies being present in node_modules --- image/discourse_dev/postgres_dev.template.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image/discourse_dev/postgres_dev.template.yml b/image/discourse_dev/postgres_dev.template.yml index 74c82c4..9163805 100644 --- a/image/discourse_dev/postgres_dev.template.yml +++ b/image/discourse_dev/postgres_dev.template.yml @@ -44,6 +44,8 @@ run: - exec: cd tmp && git clone https://github.com/discourse/discourse.git --depth=1 - exec: chown -R discourse /tmp/discourse - exec: cd /tmp/discourse && sudo -u discourse bundle install + - exec: cd /tmp/discourse && sudo -u discourse yarn install + - exec: cd /tmp/discourse && sudo -u discourse yarn cache clean - exec: cd /tmp/discourse && sudo -u discourse bundle exec rake db:migrate - exec: cd /tmp/discourse && sudo -u discourse RAILS_ENV=test bundle exec rake db:migrate - exec: rm -fr /tmp/discourse -- 2.25.1