Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Load custom module with a Docker image #14036

Closed
gauss-lvs-dev opened this issue Oct 4, 2022 · 2 comments
Closed

Load custom module with a Docker image #14036

gauss-lvs-dev opened this issue Oct 4, 2022 · 2 comments

Comments

@gauss-lvs-dev
Copy link

Is it possible to load a custom module from an absolute location?

Initially I installed Synapse with the apt repository and placed my custom python module in /opt/venvs/matrix-synapse/lib/python3.8/site-packages. I was able to load the module with:

modules:
  - module: custom_event_rules.MyRules

Recently I used the Docker image to install Synapse on a different server. Unfortunatly I was not able to manage to load a custom module with the Docker image. I placed the file in the Docker volume folder and modifed the homeserver.yaml like this:

modules:
  - module: /data/custom_event_rules.MyRules

The documentation states:

Each module is defined by a path to a Python class as well as a configuration. This information for a given module should be available in the module's own documentation.

https://matrix-org.github.io/synapse/latest/modules/index.html

Maybe I am missunderstanding the documentation.

Kind regards!

@gauss-lvs-dev gauss-lvs-dev changed the title Load custom module from a Docker image Load custom module with a Docker image Oct 4, 2022
@clokep
Copy link
Member

clokep commented Oct 4, 2022

I think this is pretty much a duplicate of #9944.

@clokep clokep closed this as completed Oct 4, 2022
@clokep
Copy link
Member

clokep commented Oct 4, 2022

(That being said -- if you have ideas of how to solve this, please let us know in #9944!)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants