Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman-compose support #118

Closed
wants to merge 2 commits into from
Closed

podman-compose support #118

wants to merge 2 commits into from

Conversation

roberth
Copy link
Member

@roberth roberth commented May 26, 2021

No description provided.

@roberth roberth changed the title Podman compose support podman-compose support May 26, 2021
@roberth
Copy link
Member Author

roberth commented Aug 3, 2021

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

@DieracDelta
Copy link

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.

@roberth
Copy link
Member Author

roberth commented Sep 8, 2021

@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?

@DieracDelta
Copy link

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)

@roberth
Copy link
Member Author

roberth commented Aug 14, 2022

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 🎉

@roberth roberth closed this Aug 14, 2022
@Enzime
Copy link

Enzime commented Aug 18, 2022

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 :)

@@ -29,6 +29,20 @@ let
config.service.name = name;
};

json.type = with lib.types; let
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can use (pkgs.formats.json {}).json by now.

@roberth
Copy link
Member Author

roberth commented Aug 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants