FIX: Install plugin gems in `discourse/discourse_test` image (#758)
authorAlan Guo Xiang Tan <gxtan1990@gmail.com>
Thu, 23 Nov 2023 10:12:37 +0000 (18:12 +0800)
committerGitHub <noreply@github.com>
Thu, 23 Nov 2023 10:12:37 +0000 (18:12 +0800)
commite06026b97c0e8d2099a14a8d37f72c966dae8fad
tree81db7a5a9ac37585fd3c95ba8c234f678ef4f9f0
parent13dc0c7b6f19566306125ab96290d50132014b75
FIX: Install plugin gems in `discourse/discourse_test` image (#758)

Why this change?

In
https://github.com/discourse/discourse/commit/dec68d780c58ef0954865b786d04b653c20e26fa,
the `plugin:install_all_gems` Rake task was made a noop because the Rake
task itself was flawed and running a Rake task will actually activate
all plugins which installs the required gems in the process. However,
plugins are not automatically activated in the test environment which
this image operates in. As such, we need to set `LOAD_PLUGINS=1` to when
running the `plugin:install_all_gems` Rake task.
image/discourse_test/Dockerfile