From 6a45ee0b04b8e8ba3d3a0a71479ae73949c666c0 Mon Sep 17 00:00:00 2001 From: Francois Vieille Date: Tue, 16 Apr 2019 21:53:10 +0200 Subject: [PATCH] add remote debug --- Makefile | 5 +++++ docker-compose.yaml | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 80a9cb9..f36a9d3 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,11 @@ pipreqs: requirements: test_environment pip install -U pip setuptools wheel pip install -r requirements.txt + python -m pip install --upgrade ptvsd + +## debug +debug: + python -m ptvsd --host 0.0.0.0 --port 3000 --wait -m ${m} ## Write config template config_template: diff --git a/docker-compose.yaml b/docker-compose.yaml index 6fbe52d..d848a18 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,7 +3,7 @@ services: jupyter: image: jupyter/tensorflow-notebook:7f1482f5a136 container_name: jupyter-iss - command: start.sh jupyter lab --NotebookApp.base_url=/jupyter --NotebookApp.token='' --NotebookApp.password='' + command: start.sh jupyter lab --NotebookApp.base_url=/jupyter --NotebookApp.token='' --NotebookApp.password='' --NotebookApp.disable_check_xsrf=True user: root networks: - netproxy @@ -17,6 +17,8 @@ services: environment: - NB_GID=1000 - NB_USER=jovyan + ports: + - 127.0.0.1:3000:3000 adminer: image: adminer:4.7