Adds kamal accessory tunnel command for forwarding ports to accessories#1778
Open
ButerezAndrei wants to merge 1 commit intobasecamp:mainfrom
Open
Adds kamal accessory tunnel command for forwarding ports to accessories#1778ButerezAndrei wants to merge 1 commit intobasecamp:mainfrom
ButerezAndrei wants to merge 1 commit intobasecamp:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 threeoption that is treated by the command as preferential ports to use, in case the accessories ports are already bound on the users machine.