Code Monkey home page Code Monkey logo

drop-in's Introduction

Remote Development Environment

jare/drop-in:latest

What's inside:

The Tmux prefix is C-q other than that both Tmux and Vim binding are mostly default tmux.conf, .vimrc
Make sure to use "Solarized Dark" compatible theme or color palette may look weird.

how to start the daemon(and all containers)

  docker create -v '/usr/lib/go' --name go-tools \
  'jare/go-tools' '/bin/true'

  docker run -v $('pwd'):/home/developer/workspace \
  --volumes-from go-tools \
  -v ~/.ssh/pub_rsa:/etc/ssh_keys:ro \
  -v /etc/localtime:/etc/localtime:ro \
  -d -p 80:80 -p 8080:8080 -p 62222:62222 -p 60001:60001/udp \
  --name drop-in jare/drop-in

-v /etc/localtime:/etc/localtime:ro - makes tmux display local time

how to connect:

mosh --ssh="ssh -p 62222" -- developer@$<ip> tmux -u

or without host identity check:

mosh --ssh="ssh -o StrictHostKeyChecking=no -p 62222" -- developer@$<ip> tmux -u

Useful Bash scripts

Connect
#!/bin/bash
ip=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' drop-in)
mosh --ssh="ssh -p 62222" -- developer@$ip tmux -u
start the daemon(and all containers)
#!/bin/bash
dtc_id=$(docker ps -a -q --filter 'name=vim-go-tools')
if [[ -z "${dtc_id}" ]]; then
 echo 'vim-go-tools container not found. Creating...'
 docker create -v '/usr/lib/go' --name 'vim-go-tools' \
   'jare/go-tools' '/bin/true'
 echo 'Done!'
fi
echo 'starting daemon...'
docker run -v $('pwd'):/home/developer/workspace \
  --volumes-from vim-go-tools \
  -v ~/.ssh/pub_rsa:/etc/ssh_keys:ro \
  -v /etc/localtime:/etc/localtime:ro \
  -e "GEMAIL=<github email>" \
  -e "GNAME=<github name>" \
  -d -p 80:80 -p 8080:8080 -p 62222:62222 -p 60001:60001/udp \
  --name drop-in jare/drop-in
echo 'Done!'

  • If you want to use publicly build image it's a good idea to use mosh ... --ssh="ssh -o StrictHostKeyChecking=no ..." ... to ignore server's identity.
  • If Vim or Powerline doesn't look right in the tmux try tmux -2 and make sure that client's TERM variable set to support 256 colors

Leave a comment if you found a bug or if you have a suggestion!

drop-in's People

Contributors

jaremko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

drop-in's Issues

troubles launching

Hi,

I have run the scripts and docker commands as you have kindly left. For whatever reason, I am unable to have vim launched in the nice drop-in format.

Hi have exec'd into the container and can see the .vimrc, .tmux.config and bundles folder.

Are there additional steps to be taken for me to use this potentially awesome repository have a remote editor? This would bring serious value for me so I would really appreciate any suggestions/knowledge you may be able to bestow upon me.

Thanks for all your great work :)

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.