-
-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionFurther information is requestedFurther information is requested
Description
I'm installing verdaccio using helm and I need to install some additional verdaccio plugins notably:
verdaccio-ldap verdaccio-memory verdaccio-auth-memory
I'm doing that with the extraInitContainers in values.yml:
extraInitContainers:
- name: populate-workdir
image: verdaccio/verdaccio:5.2.0
command:
- 'sh'
- '-c'
- 'cp -a /opt/* /tmp/tmpopt/ > /dev/null 2>&1'
volumeMounts:
- name: verdoptio
mountPath: /tmp/tmpopt/
- name: install-plugins
image: node:14.18.1-alpine
command:
- 'sh'
- '-c'
- |
cd /opt/verdaccio/
yarn config set enableProgressBars false
yarn add verdaccio-ldap verdaccio-memory verdaccio-auth-memory
yarn cache clean
yarn workspaces focus --production > /dev/null 2>&1
chown -R root /opt/
chown 10001 /opt/verdaccio/
volumeMounts:
- name: verdoptio
mountPath: /opt/
Then I have the following persistence defined:
persistence:
accessMode: ReadWriteOnce
enabled: true
mounts:
- mountPath: /opt/
name: verdoptio
readOnly: false
selector: {}
size: 8Gi
volumes:
- name: verdoptio
emptyDir: {}
I've modified the verdaccio config.yml configmap as follows:
store:
memory:
limit: 1000
However, the pod is stuck in a crashloopbackoff with the error:
# k logs verdaccio-568c6599d9-bjs2p
Defaulted container "verdaccio" out of: verdaccio, populate-workdir (init), install-plugins (init)
warn --- config file - /verdaccio/conf/config.yaml
error--- plugin not found. try npm install verdaccio-memory
(node:8) UnhandledPromiseRejectionWarning: Error:
verdaccio-memory plugin not found. try "npm install verdaccio-memory"
at /opt/verdaccio/build/lib/plugin-loader.js:110:13
at Array.map (<anonymous>)
at loadPlugin (/opt/verdaccio/build/lib/plugin-loader.js:62:37)
at LocalStorage._loadStorePlugin (/opt/verdaccio/build/lib/local-storage.js:873:47)
at LocalStorage._loadStorage (/opt/verdaccio/build/lib/local-storage.js:857:26)
at new LocalStorage (/opt/verdaccio/build/lib/local-storage.js:49:31)
at Storage.init (/opt/verdaccio/build/lib/storage.js:64:25)
at _default (/opt/verdaccio/build/api/index.js:123:17)
at startVerdaccio (/opt/verdaccio/build/lib/bootstrap.js:66:22)
at InitCommand.execute (/opt/verdaccio/build/lib/cli/commands/init.js:65:37)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:8) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
So it seems like the verdaccio-memory plugin isn't being found but I am not sure why. If I run grep on package.json I do see it listed:
grep grep package.json -e "verdaccio-memory"
"verdaccio-memory": "10.3.0"
Can anyone help me understand why this isn't working?
Thanks
Brad
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionFurther information is requestedFurther information is requested