Closed binocarlos closed 9 years ago
Any chance you're running a version of a powerstrip Dockerfile before the plugins => adapters name change? If so, it will be looking for a config in /etc/powerstrip/plugins.yml, but you'll have put it in /etc/powerstrip/adapters.yml. This definitely need some usability improvements, such as bailing out if it can't find a config file. I opened https://github.com/ClusterHQ/powerstrip/issues/30 and https://github.com/ClusterHQ/powerstrip/issues/31 to help with this.
Turns out this was fixed by https://github.com/ClusterHQ/powerstrip/commit/b44c887064d46b5b4453652de41351b09b5c66ec !
I'm having some trouble getting an adapter to be triggered from the powerstrip container.
Would love some help working out what I'm doing wrong or what the issue is as powerstrip-weave is now very close to done :-)
Here are the steps to replicate what is happening:
1. build the powerstrip container
this is from the
46d6a0eb79583e1e78e3ab0d8d0cf6102f47fe5b
commit of thesocket-support-protocol-tweaks-and-versioning
branch2. start a debug webserver
This is the simplest HTTP server that writes the request url to stdout.
This is listening not in a container but on my host (which is
192.168.8.120
)I run this in a seperate shell so can see what it logs.
3. create
~/powerstrip-demo/adapters.yml
The config will point at the debug web server running above on
192.168.8.120
- I've checked this IP is accesible from inside containers.4. start the powerstrip container
I run this in attached mode in another seperate shell so can see what it logs.
5. change DOCKER_HOST
6. check docker ps works
I get back results and see the powerstrip container logging - this works great.
7. docker run
This is where I cannot for the life of me get the adapter to trigger i.e. there is no output from the simple webserver where I would expect
/v1.16/containers/create
The full log from the powerstrip container is below - it is getting the requests for the following sequence (as expected):
POST /v1.16/containers/create
POST /v1.16/containers/33bd32dba637d4fb0ea21658426ce01ccf4bc0ee0f3eb08942ca2254464422d3/start
POST /v1.16/containers/33bd32dba637d4fb0ea21658426ce01ccf4bc0ee0f3eb08942ca2254464422d3/wait
However - the adapter itself (which should be printing these urls or at least the first one) never triggers.
Sorry if this is something dumb I'm doing - I've being racking my brains for the past few hours!