Sign inSign up

themagicalkarp/docker-thing

By themagicalkarp

•Updated almost 11 years ago

It's a thing for docker....

Image
0

494

themagicalkarp/docker-thing repository overview

⁠docker-thing

⁠Running on Docker host

  • build docker pull themagicalkarp/docker-thing
  • run docker run -v /var/run/docker.sock:/var/run/docker.sock -p 5000:5000 -d themagicalkarp/docker-thing python app.py
  • set up port forwarding on virtual machine instance (if using boot2docker)
  • visit localhost:5000

⁠Running locally (for dev)

  • pull and run the image on the docker host, as above
  • on your local machine (not boot2docker), set the tcp address from boot2docker socket in the app.py Client constructor
  • npm install -g gulp
  • npm install (grabs node modules)
  • pip install -r requirements.txt (pro tip: use a virtual environment)
  • gulp watch
  • python app.py

Note: Both gulp watch and python app.py are long running processes so you'll need two terminal instances to run both. gulp watch will automagically rebuild the js after a file is saved to disk.

Tag summary

Content type

Image

Digest

sha256:14d61a6ed…

Size

211.7 MB

Last updated

almost 11 years ago

docker pull themagicalkarp/docker-thing