* Getting docker cli-plugins in guix
@ 2020-01-03 11:52 Jelle Licht
2020-01-03 15:16 ` Maxim Cournoyer
0 siblings, 1 reply; 2+ messages in thread
From: Jelle Licht @ 2020-01-03 11:52 UTC (permalink / raw)
To: guix-devel
Hey guix,
Along with many other folks, I find myself in the situation of having to
interact with docker often. The latest docker command line client
supports a way to add new subcommands via a cli-plugins system[1].
This way of working is easy, but relies on building programs and putting
them in kind of random places in either my home directory or the top
level `/usr/...' [2]. I'd much rather have this be self-contained in my
guix-profiles instead.
Patching the docker command line client to look in "the right places"
should IMHO not be too difficult, but finding the right way to go about
this is a different issue.
My current idea is as follows:
- Patch our docker-cli package to respect e.g. `GUIX_DOCKER_PLUGIN_PATH', and add it as a search-path
- Attempt to package some docker-cli compatible plugins, which would be
install binaries according to the earlier mentioned search-path.
The advantages of this approach is that it plays nicely with all the
guix commands. The biggest drawback would be that we would have to
maintain a bespoke patch for docker-cli. Another potential problem would
be any new security issues introduced using this simplistic approach.
I'd appreciate some feedback from anyone using docker, because this does
seem like some fairly low-hanging fruit.
- Jelle
[1]: https://github.com/docker/cli/issues/1534
[2]: The suggested installation method implies downloading some random
fat binaries and copying them to your system as-is.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Getting docker cli-plugins in guix
2020-01-03 11:52 Getting docker cli-plugins in guix Jelle Licht
@ 2020-01-03 15:16 ` Maxim Cournoyer
0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2020-01-03 15:16 UTC (permalink / raw)
To: guix-devel, Jelle Licht
Hello Jelle,
On January 3, 2020 11:52:17 AM UTC, Jelle Licht <jlicht@fsfe.org> wrote:
[…]
>My current idea is as follows:
>- Patch our docker-cli package to respect e.g.
>`GUIX_DOCKER_PLUGIN_PATH', and add it as a search-path
>- Attempt to package some docker-cli compatible plugins, which would be
>install binaries according to the earlier mentioned search-path.
>
>The advantages of this approach is that it plays nicely with all the
>guix commands. The biggest drawback would be that we would have to
>maintain a bespoke patch for docker-cli. Another potential problem
>would
>be any new security issues introduced using this simplistic approach.
>
>I'd appreciate some feedback from anyone using docker, because this
>does
>seem like some fairly low-hanging fruit.
The suggested approach seems sound; I'd go for the same solution myself. Perhaps we could lobby upstream to add an environment variable we could use directly in the long term.
Thank you for working on this!
Maxim
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-03 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-03 11:52 Getting docker cli-plugins in guix Jelle Licht
2020-01-03 15:16 ` Maxim Cournoyer
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.