Skip to content

Adds kamal accessory tunnel command for forwarding ports to accessories#1778

Open
ButerezAndrei wants to merge 1 commit intobasecamp:mainfrom
ButerezAndrei:accessory-tunnel-command
Open

Adds kamal accessory tunnel command for forwarding ports to accessories#1778
ButerezAndrei wants to merge 1 commit intobasecamp:mainfrom
ButerezAndrei:accessory-tunnel-command

Conversation

@ButerezAndrei
Copy link
Copy Markdown

Problem

Having a setup where accessories are not exposing their ports, connecting to them via an ip and port from outside of the host can be annoying. Considering the default network setup, a maintaner of the application would have to fetch informations about the internal host&ports of the accessories, which as far as I understand are not stable, in order to create a ssh tunnel to the accessories.

A proposed solution is to have an accessory command which fetches the docker network host&ports and composes a ssh port forwarding command to provide a quick tunnel to the accessories.

Description

This pull requests adds a kamal accessory tunnel [ACCESSORY_NAME] which fetches information about the host and all tcp ports exposed by the docker container housing the accessory and executes a ssh port forwarding command.

It also provides a --ports=one two three option that is treated by the command as preferential ports to use, in case the accessories ports are already bound on the users machine.

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.

1 participant