opengridcc / opengrid-dev

Open source building monitoring, analysis and control
Apache License 2.0
26 stars 21 forks source link

Getting docker to run #140

Open mdeloge opened 8 years ago

mdeloge commented 8 years ago

Steps made to make docker work on Linux Elementary OS based on Ubuntu 14.04:

git checkout https://github.com/opengridcc/opengrid.git //if not yet done

docker run -d -p 8888:8888 -v /home/matteus/Github/opengrid/:/usr/local/opengrid --name opengrid-release opengrid/release:latest

/home/matteus/Github/opengrid/ : Path to local opengrid folder, change to own path

Browser: go to http://localhost:8888

JrtPec commented 8 years ago

docker run -d -p 8888:8888 -v $(pwd -P):/usr/local/opengrid --name opengrid-release opengrid/release:latest

wouterh commented 8 years ago

actually, I set up something comparable a couple of weeks ago: https://hub.docker.com/r/wouterh/opengrid/

I didn't know there was an official opengrid organisation on docker hub :-)

saroele commented 8 years ago

There wasn't such an organisation, but I thought it made sense.

The only difference between your docker setup and the current version is that we have created two separate docker repo's for release and dev images. We also adapted your run shell scripts to be more fool proof (stopping and/or removing existing container if any) and to echo the IP address on which the notebook server is accessible.

Thanks for your great docker setup! roel

On Wed, May 18, 2016 at 8:47 AM, Wouter Horré notifications@github.com wrote:

actually, I set up something comparable a couple of weeks ago: https://hub.docker.com/r/wouterh/opengrid/

I didn't know there was an official opengrid organisation on docker hub :-)

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/opengridcc/opengrid/issues/140#issuecomment-219939959

JrtPec commented 8 years ago

I was thinking we could maybe have something similar to the execution of jupyter notebook, where it opens your browser on the correct page when you run the command. Do you think that would be possible? You run ./docker-run.sh and it opens your browser automatically and drops you in the correct place?

saroele commented 8 years ago

yep, seems possible and a great idea indeed!

On Wed, May 18, 2016 at 11:50 AM, Jan Pecinovsky notifications@github.com wrote:

I was thinking we could maybe have something similar to the execution of jupyter notebook, where it opens your browser on the correct page when you run the command. Do you think that would be possible? You run ./docker-run.sh and it opens your browser automatically and drops you in the correct place?

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/opengridcc/opengrid/issues/140#issuecomment-219978586

saroele commented 8 years ago

I will improve our docker setup. I hope to accomplish this:

For opengrid-release

For opengrid-dev

opengrid-website

This should also be containerized entirely. It has to be a different container, and mounted on a different port. This will drastically lower the threshold for new website contributors and offline testing.