question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to create user verdaccio docker image

See original GitHub issue

Here is my docker-compse entry -

verdaccio:
  container_name: kode
  image: verdaccio/verdaccio:latest
  environment:
  - PGID=${PGID}
  - PUID=${PUID}
  - TZ=${TZ}
  restart: unless-stopped
  ports:
   - "4873:4873"
  volumes:
   - ${DOCKERCONFDIR}/verdaccio/conf:/verdaccio/conf
   - ${DOCKERCONFDIR}/verdaccio/storage:/verdaccio/storage
   - ${DOCKERCONFDIR}/verdaccio/plugins:/verdaccio/plugins

And I am reverse proxying the container using apache

ProxyPreserveHost On

 ProxyPass / http://0.0.0.0:4873/
 ProxyPassReverse / http://0.0.0.0:4873/

 ServerName myurl.com
 ServerAlias www.myurl.com

I can access the webui via ‘myurl.com’ and all seems well, and I can see the config.yaml file in my local conf folder, so that seems fine, but when I try to add my user via cli it is giving me an error…

$ npm set registry http://myurl.com      
$ npm adduser --registry http://myurl.com                                    
Username: karl                                                                 
Password: mypassword
Email: (this IS public) myemail                                               
npm ERR! code E500                                                               
npm ERR! Registry returned 500 for PUT on http://myurl.com/-/user/org.couchdb .user:karl: internal server error

I can’t seem to work it out, and I have rebuilt the container, any help or ideas would be great, thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
lirantalcommented, Jul 25, 2019

@carlosen14 @juanpicado perhaps worth to update the docs with this if we haven’t already?

1reaction
carlosen14commented, Jul 25, 2019

Actually i solved that way… moved to an external volume like this

# Crea la variable con el path al volumen
VERDACCIOSTORAGE=/path/to/your/volume

# Crear el volumen en docker
docker volume create -d local --opt o=bind --opt device=$VERDACCIOSTORAGE verdaccio-storage

# Crear el directorio para ese volumen.
mkdir -p $VERDACCIOSTORAGE

and but i had to set USER root on Dockerfile, else it couldn’t write on volume maybe because it was still a bind.

FROM verdaccio/verdaccio:4.1.0

USER root

ARG ENV=development
ARG plugins="verdaccio-github-oauth verdaccio-github-oauth-ui verdaccio-audit verdaccio-google-cloud verdaccio-gitlab verdaccio-profile-api verdaccio-bitbucket-server verdaccio-coauth"

RUN yarn add $plugins

ADD config.yaml /verdaccio/conf/config.yaml

RUN apk --no-cache add curl
Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker - Verdaccio
If you have build an image locally use verdaccio as the last argument. You can use -v to bind mount conf , storage...
Read more >
Verdaccio create user to publish packages inside a GitLab CI ...
To build the docker images for servers in the project, I'm using verdaccio as a GitLab service. In the build phase, I want...
Read more >
verdaccio/verdaccio - Docker Image - Docker Hub
Verdaccio Official Docker Image: A lightweight private Node.js proxy registry. ... if you use HTTPS, add an appropriate CA information ("null" means get...
Read more >
Quick and Easy Local NPM Registry With Verdaccio and Docker
Sometimes it can be useful to be able to npm publish libraries or projects you're working on to a local npm registry for...
Read more >
Create a free private npm registry with Verdaccio - ITNEXT
In my case I want only authenticated users to be able to see and publish ... That's it, deploy your docker image to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found