Git Product home page Git Product logo

docker-tmate-client's Introduction

whale-mate

Put your tmate in a container

What is tmate?

Please have a look here

Why would I need to run it in a container?

You actually want to give a complete remote access to your computer to some remote user? Really?

OK, how does it work?

Just clone this repository, go inside and run docker-compose up -d. Once the container is up, you'll be able to run a tmate inside it, using docker exec -ti tmate_tmate_1 run_tmate

git clone https://github.com/cjeanner/docker-tmate-client ~/.tmate
cd docker-tmate-client
docker-compose up -d
docker exec -ti tmate_tmate_1 run_tmate

The "run_tmate" is a wrapper - there are some issues with the TTY provided by docker when you use the -ti option. If you want to knowm more, read this

Shared volumes

The following files/directories are shared in the container if you use the provided docker-compose:

  • ~/work (read-write)
  • ~/.vimrc (read-only)
  • ~/.ssh/id_rsa (read-only)
  • ~/.gitconfig (read-only)

Please ensure you have a password set on your private SSH key. Not kidding, you really should have one, especially if you share things with tmate.

Sudo in da place

Sometime, you'll want to get some fancy packages for your work. Well, provided your dream package is an RPM, you're able to install it - sudo is present by default and allows you to do whatever you want in your container.

This can, of course, cause some issues. Use it wisely. Or not. I don't care anyway.

tmate script

A "tmate" script is provided. You can install it in some $PATH location, such as /usr/local/bin/tmate. This wrap all the magic for whale-mate - please note the git repository location might differ on your computer.

Such wow, such nice, such more

Please don't hesitate to provide PR on this project if you feel it lacks something.

docker-tmate-client's People

Contributors

cjeanner avatar

Stargazers

 avatar

Forkers

weshayutin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.