digital-dream-labs / vector-web-setup

Tool to perform initial configuration of Vector robots.
MIT License
65 stars 57 forks source link

Add Dockerfile #18

Closed gdhgdhgdh closed 4 years ago

gdhgdhgdh commented 4 years ago

This has been published on my Docker Hub account, but I highly recommend you also host it from a DDL-owned Docker Hub account.

Usage:

$ docker run -it --rm -p 8000:8000 gdhgdh/vector-web-setup
Vector setup running on http://localhost:8000

Open Chrome to point at that URL

gdhgdhgdh commented 4 years ago

fixes #9

john20xdoe commented 4 years ago

~Any chance that the port 8000 can be overridden?~ ~This can be self-hosted in Heroku but Heroku has to provide the port number via $PORT.~ ~https://devcenter.heroku.com/articles/deploying-nodejs~

Nvm, looks like there is a --port param now for serve. Will try that with my Dockerfile.

gdhgdhgdh commented 4 years ago

Yup that -p only appeared in the last couple of days since I submitted the PR :)

I've updated the Dockerfile to a) pull the repo from git b) allow the PORT as a parameter.

gdh@gdh-x260:~/vector-web-setup$ docker run -e PORT=8765 -it --rm -p 8765:8765 gdhgdh/vector-web-setup
Server running on ip 0.0.0.0 and port 8765
Server running. Go to http://localhost:8765 to use it