From: Arpit Jalan Date: Wed, 16 Dec 2020 18:22:47 +0000 (+0530) Subject: FIX: perform bundle install after modifying directory permissions (#504) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=60a8de57b23b0d4786f84651dab3f8adbd0415b4;p=discourse_docker.git FIX: perform bundle install after modifying directory permissions (#504) --- diff --git a/image/discourse_dev/postgres_dev.template.yml b/image/discourse_dev/postgres_dev.template.yml index 1742fdb..74c82c4 100644 --- a/image/discourse_dev/postgres_dev.template.yml +++ b/image/discourse_dev/postgres_dev.template.yml @@ -41,8 +41,9 @@ run: - exec: su postgres -c 'psql discourse_test_multisite -c "create extension if not exists hstore;"' - exec: su postgres -c 'psql discourse_test_multisite -c "create extension if not exists pg_trgm;"' - - exec: cd tmp && git clone https://github.com/discourse/discourse.git --depth=1 && cd /tmp/discourse && sudo -u discourse bundle install + - 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 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