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

Add customizable TRAMP method for container connections across shells #239

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

LionyxML
Copy link
Contributor

@LionyxML LionyxML commented Nov 7, 2024

Hello there!

I've recently covered docker.el in a blog post (https://www.rahuljuliato.com/posts/emacs-docker-podman), and people got really exited about it.

One """limitation""" is that on some systems I can only use podman and even customizing docker-command and docker-compose-command to 'podman' and 'podman-compose' there are still limitations, most noticeable with the 'shell' commands.

So I stepped ahead and extracted the /docker: prefixes into into a customizable variable, we can now use podman with the docker-container.el sub-module.

I tested on eshell, shell, vterm and eat.

This commit:

  • Introduced docker-container-tramp-method to allow selection of TRAMP method, enabling compatibility with Docker or Podman.

  • Refactored all Emacs shells to use the new variable for container connections, improving flexibility and cross-tool support.

docker-container.el Outdated Show resolved Hide resolved
@Silex
Copy link
Owner

Silex commented Nov 8, 2024

Thanks looks neat. Just address the comment and I'll merge.

- Introduced `docker-container-tramp-method` to allow selection of
TRAMP method, enabling compatibility with Docker or Podman.

- Refactored all Emacs shells to use the new variable for container
connections, improving flexibility and cross-tool support.
@LionyxML
Copy link
Contributor Author

LionyxML commented Nov 8, 2024

Fixed, rebased and force pushed to keep the history clean.

@Silex Silex merged commit ec2391a into Silex:master Nov 11, 2024
22 checks passed
@Silex
Copy link
Owner

Silex commented Nov 11, 2024

Thanks! 👍

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.

2 participants