billiegoose / modserv

A next generation registry (WIP)
Apache License 2.0
9 stars 1 forks source link

Verifying local installation #9

Open zeke opened 7 years ago

zeke commented 7 years ago

👋

First time using Docker. I ran the one-liner from the README, and things appear to have worked. What do I do next? Is it now running somewhere?

$ docker run --detach --restart=always -p 80:80 --name my-registry --volume registry:/srv/data_volume wmhilton/modserv
Unable to find image 'wmhilton/modserv:latest' locally
latest: Pulling from wmhilton/modserv
693502eb7dfb: Pull complete 
081cd4bfd521: Pull complete 
5d2dc01312f3: Pull complete 
54a5f7da9a4f: Pull complete 
f6ebc0704397: Pull complete 
cd487f72ac9f: Pull complete 
c0484860bdc0: Pull complete 
28404ada322d: Pull complete 
9b125e113ffb: Pull complete 
b6f9e35312b0: Pull complete 
Digest: sha256:4b13e09895c8f72d761d1a16f110605ad66f1a1d92623f7fa117906889625433
Status: Downloaded newer image for wmhilton/modserv:latest
65616b80cbc63a4fd0a9d6334bf8eb7bee1be51ed8abb4292732b1c9ef60c87c
billiegoose commented 7 years ago

Should be! Try curling localhost and see if you get something back. Did you try the next bit of the readme about locating the config file? The docker command only opens up one port, so I'm thinking it relies on the HTTP Host header to determine whether a request is for the registry API or for the web interface. I added some pattern matching / routing stuff so I could configure subdomains in the config file, but I'm not sure off the top of my head what happens if you don't set up a config file.

billiegoose commented 7 years ago

This is super exciting BTW. What brings you to the land of run-your-own-npm-repos?