Dockerfile and associated supervisord configuration files for remote debugging using ssh.
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 .
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