top | item 8967448

Powerstrip: prototype Docker extensions today

41 points| progrium | 11 years ago |clusterhq.com

13 comments

order
[+] progrium|11 years ago|reply
I'm involved as an independent collaborator again in Docker's internal extension efforts, and after I saw this I got ClusterHQ looped in to that working group. Then we talked about collaborating on a Go port of Powerstrip, so I'm working on that here: https://github.com/ClusterHQ/powerstrip/tree/golang

We're also planning to combine the Docker event stream plugin system I prototyped previously into Powerstrip: https://github.com/progrium/docker-plugins

And ultimately, eventually, we'll have native extension support in Docker that allows much more extensibility, but all this is a good first step IMO.

[+] michaelsbradley|11 years ago|reply
Do you know if Powerstrip could be used to extend the entire family of Docker tools: machine, compose (fig), swarm?

I think it would be interesting, for example, to explore development of an extension that "guided" those tools regarding where (virtually speaking) they should re/deploy machines and containers, based on metrics collected by a 3rd party service with which that extension communicated.

I apologize if my question is a bit naïve; at present, I've been spending a lot of time with the porcelain and haven't gotten into the internals enough to understand how all the Docker pieces truly fit together.

[+] binocarlos|11 years ago|reply
I've been hacking on a powerstrip adapter for the past few weeks (https://github.com/binocarlos/powerstrip-weave) and have found it a pleasure to work with.

Capturing JSON messages on their way to the docker server is a far more civilised way to extend docker than trying to "wrap" the docker cli.

In my use case - using the cli - I was struggling to separate the docker arguments from the image name and container args. It's better for docker itself to do that and more generally - its better to use the vanilla docker client (because orchestration tools).

As soon as I was working with the JSON messages generated by the docker client - everything became much easier!

[+] SEJeff|11 years ago|reply
The Wordpress on this site is dead, why don't more people use static html generators these days? It doesn't get more web scale than static html via pelican or Jekyll or something :)

I'm quite happy to see this happening however and see that the batteries included, but removable mantra really is actually happening.

[+] lewq|11 years ago|reply
We're working on moving to a static site generator :)

That said one emergency mod_rewrite rule later and we fixed the issue - which was that the HN link went to the link without the trailing slash which was hitting the database! :'(

[+] lewq|11 years ago|reply
Yes, we are also glad to be involved in making "batteries included but removeable" really happen :)