Nasser Alkmim <[email protected]> writes:
> Hi,
Hi Nasser,
> Does anyone use apptainer (former singularity) containers with TRAMP?
>
> I would like to develop in emacs, but make the container libraries
> available so LSP server and debuger can recognize them.
>
> I tried already adding a tramp-method:
>
> (add-to-list 'tramp-methods
> '("apptainer" (tramp-login-program "apptainer")
> (tramp-login-args (("shell") ("instance://%h")))))
>
> Then I start an apptainer instance named "mycontainer".
> So I can start an interactive shell in the container with,
>
> apptainer shell instance://mycontainer
>
> I would like to use TRAMP with "/apptainer:mycontainer:/"?
>
> Any ideas?
Well, it is a good idea to add Apptainer to Tramp. I have made a small
proof of concept, see the appended patch for tramp-container.el. You can
apply it on top of this file, either from the Tramp or Emacs git repo,
master branch.
> Thanks
Best regards, Michael.