Skip to content

Dockerfile and associated supervisord configuration files for remote debugging using ssh.

License

Notifications You must be signed in to change notification settings

davidraleigh/remote-debug-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remote-debug-docker

Dockerfile and associated supervisord configuration files for remote debugging using ssh.

setup your local machine to build image

This is only if you're curious about building the image locally or if you prefer to build locally and then push to your remote hose

cp ~/.ssh/authorized_keys ./
mkdir .pycharm_helpers
docker build --build-arg IMAGE=my-docker-image --build-arg TAG=my-fancy-tag -t debuggable-docker-image .

setup your remote machine to build image

SSH into your remote debug machine. Git Clone this repo into your home directory. And then copy your google cloud public key from your local development machine to your remote development VM, to the ~/remote-debug-docker/ directory:

gcloud compute copy-files ~/.ssh/authorized_keys davidraleigh@raleigh-dev-1604:/home/davidraleigh/remote-debug-docker/ --zone=us-central1-b

From inside your remote development VM you need to pull over your pycharm helpers:

sudo gsutil cp -r gs://raleigh-data/2017.1.1/.pycharm_helpers ~/remote-debug-docker/

To run your machine you'll need to have the 52022 port exposed.

to ssh in you'll need to connect using root:

ssh -i ~/.ssh/google_compute_engine root@146.148.78.138 -p 52022

About

Dockerfile and associated supervisord configuration files for remote debugging using ssh.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published