-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install plugin in the Etherpad Docker image #6081
Comments
Clarification: This question is not intended to be specific to the ep_post_data plugin. If there's another plugin that would be better for me to test with, that's perfectly fine. My end goal is setting up a docker-powered development environment for creating my own etherpad plugin. |
@narthur This is a weird issue. It builds on my local system without a problem but it also doesn't detect the additional plugin at runtime. |
I just tried installing ep_spellcheck, ep_headings2, and ep_align in the src dir, all with the same result. Build completes without issue, instance starts up fine, but no plugins are shown as installed at /admin/plugins. |
Here's the output from this command:
|
Installing via the dashboard seems to work fine. Here are the logs when installing this way
|
Found this:
|
If this is correct that Etherpad doesn't support installing plugins from the command line after Etherpad's dependencies have been installed, it seems like this documentation page needs to be updated: https://github.com/ether/etherpad-lite/wiki/Available-Plugins |
Did you try the latest image? Maybe that fixes the error. There I installed npm version 6. |
I found the error. You install it in the wrong directory. The current working directory is the root path of etherpad. FROM etherpad/etherpad
RUN cd /opt/etherpad-lite && \
npm install ep_guest |
Oh, interesting. When I tried that before, I got an error on startup that log4js couldn't be imported. Maybe the update to npm 6 fixed that problem? |
Confirmed working: ![]() Thank you for your help @SamTV12345! |
Yes that was the problem with newer npm versions. Now that we have the same npm version as the server npm version installed, this is possible again. |
I'm having trouble installing an Etherpad plugin using my Dockerfile. I've tried both of the following commands:
When I run the install command in the Etherpad root directory and then try to spin up the image, I get an error that the log4js module can't be found.
When I run the same command in the
src
directory inside the Etherpad root, the instance spins up fine, but the plugin is not listed as installed in/admin/plugins
.Here is the minimum reproduction:
https://github.com/narthur/beetherpad
Here are the settings.json file and troubleshooting info:
https://gist.github.com/narthur/1834d632b0f5635f4b893abd0681524d
How can I install a plugin during my docker build?
The text was updated successfully, but these errors were encountered: