arion icon indicating copy to clipboard operation
arion copied to clipboard

`podman-compose` support

Open roberth opened this issue 3 years ago • 4 comments

roberth avatar May 26 '21 16:05 roberth

We don't really need podman-compose as of now, because we support podman via docker-compose. The json.type change is good though.

roberth avatar Aug 03 '21 13:08 roberth

Is it possible to tell arion to build with podman without the workarounds proposed here? Trying to figure out how to deploy with Arion and podman on non-nixos systems.

DieracDelta avatar Sep 06 '21 15:09 DieracDelta

@DieracDelta It seems that rootless podman is becoming a viable option, but it needs to be wired into the arion command to be easy to use. I am not sure if we need to worry about having a docker socket, but regardless, it seems quite feasible.

Nice handle btw. I suppose you like to neutralize convoluted functions?

roberth avatar Sep 08 '21 12:09 roberth

Hah yes the handle was an (un)fortunate side effect of my signal processing class. Lots of fun but also lots of scary math

Yeah, it seems easy enough for any Linux user to get Arion working with podman. We're still looking into how easy this is to spin up on Mac and Windows. But good to know we're not missing anything in the arion cli. (This is an amazing tool BTW. Surprised there are so few usages on github)

DieracDelta avatar Sep 10 '21 13:09 DieracDelta

Podman can serve as a backend for docker compose nowadays, so I don't think anyone needs podman compose anymore. Maybe I'm wrong, but until I learn more, long live podman docker compose :tada:

roberth avatar Aug 14 '22 07:08 roberth

To run rootless Podman with Arion, I ended up having to alias podman-compose to docker-compose

https://github.com/Enzime/dotfiles-nix/blob/%F0%9F%94%A5/overlays/docker-compose.nix

Combined with virtualisation.podman.dockerCompat = true;

Would love to see some simple way to call podman-compose instead of docker-compose from Arion :)

Enzime avatar Aug 18 '22 13:08 Enzime

rootless

Can rootless podman provide a docker socket? That would give us the best of both worlds and keep the number of code paths significantly lower. It will be similar to rootful podman with docker-compose, currently documented as the recommended installation method for NixOS.

Otherwise, I suppose this PR could be revived, but I don't have the bandwidth to do it.

What's missing for this PR to be merged seems to be

  • see which existing tests are compatible and run them in ci
  • documentation for how to use it and what the (significant?) limitations are

roberth avatar Aug 20 '22 22:08 roberth