A Powerstrip plugin that runs weave inside a container and ensures that containers are connected to the weave network before running their entrypoints.
My woefully bad (i.e. non-existent) knowledge of python is preventing me from working out why I can't get the powerstrip container to run.
I am building the container using this command from the master branch of powerstrip:
$ docker build -t clusterhq/powerstrip .
At first the error was saying that the yaml and treq packages could not be found so I added them to the Dockerfile as follows:
RUN pip install service_identity pycrypto pyyaml treq && \
However - now I'm getting this error:
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 642, in run
runApp(config)
File "/usr/local/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 23, in runApp
_SomeApplicationRunner(config).run()
File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 376, in run
self.application = self.createOrGetApplication()
File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 441, in createOrGetApplication
application = getApplication(self.config, passphrase)
--- <exception caught here> ---
File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 452, in getApplication
application = service.loadApplication(filename, style, passphrase)
File "/usr/local/lib/python2.7/dist-packages/twisted/application/service.py", line 405, in loadApplication
application = sob.loadValueFromFile(filename, 'application', passphrase)
File "/usr/local/lib/python2.7/dist-packages/twisted/persisted/sob.py", line 210, in loadValueFromFile
exec fileObj in d, d
File "powerstrip.tac", line 11, in <module>
if "://" not in DOCKER_HOST:
exceptions.TypeError: argument of type 'NoneType' is not iterable
Failed to load application: argument of type 'NoneType' is not iterable
I'm am most probably doing it wrong but am a bit stuck so was wandering if you could teach me to suck python eggs (to coin a phrase) and tell me what is going wrong here.
My woefully bad (i.e. non-existent) knowledge of python is preventing me from working out why I can't get the powerstrip container to run.
I am building the container using this command from the master branch of powerstrip:
At first the error was saying that the
yaml
andtreq
packages could not be found so I added them to the Dockerfile as follows:However - now I'm getting this error:
I'm am most probably doing it wrong but am a bit stuck so was wandering if you could teach me to suck python eggs (to coin a phrase) and tell me what is going wrong here.