node.js - NPM install via git+https//x-oauth-basic within Docker container fails -


i have node project have stood on host server (ubuntu 14.04), can pull repo , perform npm install without issue on host. package.json includes private repos use https have npm pull in our private dependencies.

like in our "dependencies" in our package.json:

"local_utils": "git+http://12345:x-oauth-basic@github.com/ourprivateteam/local_utils.git",

i'm trying run same application within docker container, on build of our docker image npm install fails on our private repo calls. throws error:

failed connect github.com port 443: connection timed out

the normal dependencies in npm work fine within container. causing error our private repos?

as suspected, outbound access github being blocked server:

"yup guessed it, added env http_proxy dockerfile , worked. had configured npm in container use proxy didn't realize needed set container well."


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -