Plugin for use with discourse docker image
Go to file
Bianca Nenciu 3a43aa6be7
DEV: Speed up /admin/docker/repos.json spec (#237)
Requesting /admin/docker/repos.json with a lot of plugins installed can
take a lot of time because of the large number of calls to the 'git'
CLI that are used to retrieve various information about the plugin
(eg. branch, latest commit, remote URL, etc).

This is not a problem in production because of memoization and the
much lower number of installed plugins, but it is a problem in test
environment where specs requesting this page can take 10+ seconds with
~100 installed plugins.

This commit speeds up by stubbing the `find_all` method to return only
the first few repositories.
2024-09-04 13:58:00 +03:00
.github/workflows DEV: Add the plugin CI workflow 2023-02-16 14:09:33 +01:00
admin/assets/javascripts/discourse UX: improve UI of software update page & display more info. (#214) 2024-07-09 00:14:26 +05:30
app/controllers/docker_manager UX: improve UI of software update page & display more info. (#214) 2024-07-09 00:14:26 +05:30
assets/stylesheets/common UX: improve UI of software update page & display more info. (#214) 2024-07-09 00:14:26 +05:30
config Update translations (#233) 2024-08-13 16:31:34 +02:00
lib/docker_manager Prepare for core switch from yarn to pnpm (#236) 2024-09-02 18:11:27 +01:00
scripts DEV: Update rubocop-discourse to version 3.8.0 (#219) 2024-05-28 11:46:00 +02:00
spec DEV: Speed up /admin/docker/repos.json spec (#237) 2024-09-04 13:58:00 +03:00
test/javascripts UX: improve UI of software update page & display more info. (#214) 2024-07-09 00:14:26 +05:30
.discourse-compatibility DEV: Pin plugin for Discourse < 3.4.0.beta1-dev (#231) 2024-08-02 17:35:22 +08:00
.eslintrc.cjs DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
.gitignore DEV: Update linting setup 2023-02-16 14:09:33 +01:00
.prettierrc.cjs DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
.rubocop.yml DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
.streerc DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
.template-lintrc.cjs DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
Gemfile DEV: Update linting (#198) 2023-12-13 21:16:57 +01:00
Gemfile.lock Bump rexml from 3.3.3 to 3.3.6 (#234) 2024-09-01 12:23:00 +02:00
LICENSE Update Readme and add License 2014-06-28 00:31:12 +05:30
README.md DEV: Update readme 2023-02-16 14:09:33 +01:00
package.json DEV: Update rubocop-discourse to version 3.8.0 (#219) 2024-05-28 11:46:00 +02:00
plugin.rb DEV: Update rubocop-discourse to latest version 2024-05-24 16:32:08 +02:00
translator.yml DEV: Add missing file to Crowdin (#168) 2023-02-20 09:44:12 +01:00
yarn.lock Bump micromatch from 4.0.5 to 4.0.8 (#235) 2024-09-01 12:52:51 +02:00

README.md

Docker Manager

This plugin works with the Discourse docker image. It allows you to perform upgrades via the web UI and monitor activity in the container.

Running tests

  • Ruby
    • Run RAILS_ENV=test bin/rails "plugin:spec[docker_manager]" in your discourse directory
  • JS
    • Run RAILS_ENV=test bin/rails "plugin:qunit[docker_manager]" in your discourse directory

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT