Mysterious ECONNREFUSED within docker build #2188
Unanswered
youmustfight
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Alright, so I added the listen property to my config after seeing this issue/discussion #356 (comment) and now it seems to work!
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks, loving this project but running into a mystery as I take it from my local monorepo dev environment into CI. The challenge I'm having is doing package installs when within a
docker build
command.At the start of CI I'm running Verdaccio as its own container (built via docker-compose if that matters).
Then I try to build a backend API via
docker build
. The port linking and registry const are passed in like so:Then in my Dockerfile, there is a step that looks like this (just doing a single package install without lock file to minimize variables):
When I do this command, I can see that the running Verdaccio container is getting the request, and seemingly is fine with it and responding (I've also deleted /storage/lodash to do fresh 200 streaming):
BUT in docker build, the command totally bails :(
What could be causing the
ECONNREFUSED
? Verdaccio looks like its sending a 200 request when its trying to do an install and I'm seeing the containers when I do a docker network inpsect. Are there other logs or something I should look for?Update: Just realized how to exec into Verdaccio lol
🙏🙏🙏🙏
Versions:
Verdaccio: 5.0.1
Node base image: 12.18.0
NPM: 6.14.4
Yarn: 1.22.10
CircleCI machine executor: ubuntu-1604:202004-01
config.yaml
Beta Was this translation helpful? Give feedback.
All reactions