Replies: 4 comments
-
Hi @SkeLLLa, What exactly do you mean with the following?
|
Beta Was this translation helpful? Give feedback.
-
I'm also curious to know which issues are you facing using plugins with Docker images. However, we have working examples here https://github.com/verdaccio/docker-examples |
Beta Was this translation helpful? Give feedback.
-
@DanielRuf I mean to have some kind of dictionary where users can specify what plugins they want to load and from where to load them. {
plugins: [
{name: 'verdaccio-audit': dir: '/home/user/foobar'}
}
} So here we'll load some code from @juanpicado There's only one way when all's up and running. So when you're using basic docker image of verdaccio you'll need:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, but I'm still confused about the reason of this request, does the following example does not work for you? // Dockerfile
That extends the base image and you are able to install globally other packages. Why modify the verdaccio |
Beta Was this translation helpful? Give feedback.
-
Nowadays plugin loading is kind of "magic" that's hidden deep inside the code of verdaccio.
Plugin installation (especially in dockerized env) does not work. If you install plugin globally verdaccio doesn't see it. If you try to install it into verdaccio folder for some reason after that it couldn't load
lodash
,express
, etc.Also it's not possible or rather hard to load some forked plugin.
Proposition:
Make a config section where plugins can be directly configured with path to them, etc.
Beta Was this translation helpful? Give feedback.
All reactions