I have been playing around with Docker and added the Turbogears 2.3.4 demo 
to the docker hub <https://registry.hub.docker.com/>.  

If you already have Docker or Panamax installed, a one liner will install 
the demo and run it to be viewed on the browser at 0.0.0.0:8080.

For Docker:

docker run -it -p 8080:8080 stuartz/turbogears /sbin/my_init -- gearbox 
> serve
>

For Panamax:
   add stuartz/turbogears image 
   under services > Docker run command:

/sbin/my_init -- gearbox serve
>


to edit turbogear files 

docker run -it -p 8080:8080 stuartz/turbogears /sbin/my_init -- nano 
> filename
>

WORKDIR is already set at turbogear's top directory. 

I'm using phusion/baseimg as the ubuntu base.  Therefore use /sbin/my_init 
-- any bash commands for a one time command at container start.  All the 
inits are ran and then the command.  If the command finishes, then the 
container will close.

phusion creates a better run environment but if you want multiple commands 
on the bash, use the Dockerfile in the Information tab at the repository 
and swap the first two line comments.
Follow the instructions at the end of the dockerfile.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to