-
Notifications
You must be signed in to change notification settings - Fork 39
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
Provide a Docker image with ssm-tools (example provided) #5
Comments
PS: I got the tunnel working under vagrant (used a more complete ubuntu system) |
I'm afraid You can run it in VirtualBox for sure as that provides a complete system, but Docker? I don't think so. Sorry. |
Ok, thank you.
…On Mon, 3 Feb 2020, 01:06 Michael Ludvig, ***@***.***> wrote:
Closed #5 <#5>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5?email_source=notifications&email_token=AAEYSPTTKK46L23564WLSNTRA5NY7A5CNFSM4JYIOKWKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWLLKRBY#event-3000412295>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEYSPSGVQZHJ6WXIZRJWCTRA5NY7ANCNFSM4JYIOKWA>
.
|
@mludvig as far as my understanding goes, a docker container should be roughly equivalent to a normal linux box. What would I be missing here that it wouldnt be possible inside a docker container? Currently trying to get ssm-tunnel to work for macos users, which will not be possible as far as I understand, unless we can utilize docker? |
@lostdesign Prove me wrong, I'd be very happy to provide an easy way to run Use VirtualBox - that's a complete Linux system with its own kernel where Or use
All |
@mludvig my guess was that you could pass the host's TUN device into the container and do the changes there? Aka using that device and bridging the containers network with the host's. These are just rough speculations, haven't gotten further into it, maybe i am completely off here. I'll research a bit further in that regard and come back with solutions (https://www.reddit.com/r/docker/comments/4cw758/accessing_tuntap_device_inside_of_a_docker/). SSH isn't an option for us as every resource we need to access (DB, Kafka) are private, so using But thanks for your quick reply, much appreciated! |
Alright, I managed to get it to work inside a docker container, the only part that is necessary, is sharing Which would look like Here is an example Dockerfile, which we used to make it work. We also used SSH to connect any SQL Tool into the container which has the tunnel in order to access the AWS Resources.
This defo needs some cleaning, but it should be good enough to give a starting point for this. tldr: Create a Docker image with the required dependencies, share TUN device into container with privileged access. |
That’s great, thanks for looking at it. If you want to raise a PR with a (tidy) |
You can assign the issue to me. Will open a PR tomorrow morning 👌 |
This is still on my todo. Scheduled for this week :D Haven't forgotten about it. |
@lostdesign Any update on what your entrypoint.sh looks like trying to setup the same thing on my mac.. container get connectivity fine just now trying to bridge it. |
Ended up making my own solution for the mac.. still a work in progress but gets the job done on macos.
uses some bash magic to do what this utility does but with a mac. Windows powershell native coming soon |
It would be awesome to be able to run ssm-tools in a docker image for us on OSX and those that prefer to keep tools off their system. This is what I tried, and it runs
ssm-session
:however
ssm-tunnel <instance>
fails without any clear indication of why:The text was updated successfully, but these errors were encountered: