Running Pyro (nameserver for now) in a Docker container

Steven Pav <[email protected]> Wed, 16 Jul 2014 17:50:36 +0000 (UTC)
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
Hello;

I am excited to start using Pyro4. To ease deployment in our organization, I 
plan on running services in Docker containers (see http://docker.io/ or 
http://continuousdelivery.uglyduckling.nl/uncategorized/using-docker-as-a-
python-development-environment/ ). To start, I tried to deploy the nameserver 
in a docker container. However, I am unable to locate the nameserver once it 
is running. I believe this might be related to some of the issues noted in 
this post: http://comments.gmane.org/gmane.comp.python.pyro/2490 , namely 
that the nameserver running within the docker container has funny ideas about 
the name of the localhost, or what port it should be listening on, etc. 

As a MWE, I have posted the Dockerfile and some shell code to run it here: 
https://gist.github.com/shabbychef/72657f769eba7ddeed9d . When I run it, I 
can confirm that the container with the nameserver is running, however, I 
cannot communicate with it, rather I get the error:

  Failed to locate the name server: Failed to locate the nameserver

Any help debugging this would be appreciated. 


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds