Skip to content

Commit 5e9b5d7

Browse files
committed
moved installation of debugpy to boot script
1 parent 4010904 commit 5e9b5d7

File tree

32 files changed

+92
-82
lines changed

32 files changed

+92
-82
lines changed

services/agent/docker/boot.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
3030
uv pip list
3131
fi
3232

33+
if [ "${SC_BOOT_MODE}" = "debug" ]; then
34+
# NOTE: production does NOT pre-installs debugpy
35+
uv pip install --no-cache-dir debugpy
36+
fi
37+
3338
#
3439
# RUNNING application
3540
#

services/agent/docker/entrypoint.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
6363
fi
6464
fi
6565

66-
if [ "${SC_BOOT_MODE}" = "debug" ]; then
67-
# NOTE: production does NOT pre-installs debugpy
68-
uv pip install --no-cache-dir debugpy
69-
fi
70-
7166
# Appends docker group if socket is mounted
7267
DOCKER_MOUNT=/var/run/docker.sock
7368
if stat $DOCKER_MOUNT >/dev/null 2>&1; then

services/api-server/docker/boot.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
2525
uv pip list
2626
fi
2727

28+
if [ "${SC_BOOT_MODE}" = "debug" ]; then
29+
# NOTE: production does NOT pre-installs debugpy
30+
uv pip install --no-cache-dir debugpy
31+
fi
32+
2833
# RUNNING application ----------------------------------------
2934
APP_LOG_LEVEL=${API_SERVER_LOGLEVEL:-${LOG_LEVEL:-${LOGLEVEL:-INFO}}}
3035
SERVER_LOG_LEVEL=$(echo "${APP_LOG_LEVEL}" | tr '[:upper:]' '[:lower:]')

services/api-server/docker/entrypoint.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
6464
fi
6565
fi
6666

67-
if [ "${SC_BOOT_MODE}" = "debug" ]; then
68-
# NOTE: production does NOT pre-installs ptvsd
69-
uv pip install --no-cache-dir debugpy
70-
fi
71-
7267
echo "$INFO Starting $* ..."
7368
echo " $SC_USER_NAME rights : $(id "$SC_USER_NAME")"
7469
echo " local dir : $(ls -al)"

services/autoscaling/docker/boot.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
2929
uv pip list
3030
fi
3131

32+
if [ "${SC_BOOT_MODE}" = "debug" ]; then
33+
# NOTE: production does NOT pre-installs debugpy
34+
uv pip install --no-cache-dir debugpy
35+
fi
36+
3237
#
3338
# RUNNING application
3439
#

services/autoscaling/docker/entrypoint.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
7070
fi
7171
fi
7272

73-
if [ "${SC_BOOT_MODE}" = "debug" ]; then
74-
# NOTE: production does NOT pre-installs debugpy
75-
uv pip install --no-cache-dir debugpy
76-
fi
77-
7873
# Appends docker group if socket is mounted
7974
DOCKER_MOUNT=/var/run/docker.sock
8075
if stat $DOCKER_MOUNT >/dev/null 2>&1; then

services/catalog/docker/boot.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
2525
uv pip list
2626
fi
2727

28+
if [ "${SC_BOOT_MODE}" = "debug" ]; then
29+
# NOTE: production does NOT pre-installs debugpy
30+
uv pip install --no-cache-dir debugpy
31+
fi
32+
2833
# RUNNING application ----------------------------------------
2934
APP_LOG_LEVEL=${CATALOG_LOGLEVEL:-${LOG_LEVEL:-${LOGLEVEL:-INFO}}}
3035
SERVER_LOG_LEVEL=$(echo "${APP_LOG_LEVEL}" | tr '[:upper:]' '[:lower:]')

services/catalog/docker/entrypoint.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
6363
fi
6464
fi
6565

66-
if [ "${SC_BOOT_MODE}" = "debug" ]; then
67-
# NOTE: production does NOT pre-installs ptvsd
68-
uv pip install --no-cache-dir debugpy
69-
fi
70-
7166
echo "$INFO Starting $* ..."
7267
echo " $SC_USER_NAME rights : $(id "$SC_USER_NAME")"
7368
echo " local dir : $(ls -al)"

services/clusters-keeper/docker/boot.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
3030
uv pip list
3131
fi
3232

33+
if [ "${SC_BOOT_MODE}" = "debug" ]; then
34+
# NOTE: production does NOT pre-installs debugpy
35+
uv pip install --no-cache-dir debugpy
36+
fi
37+
3338
#
3439
# RUNNING application
3540
#

services/dask-sidecar/docker/boot.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ if [ "${SC_BUILD_TARGET}" = "development" ]; then
3131
uv pip list
3232
fi
3333

34+
if [ "${SC_BOOT_MODE}" = "debug" ]; then
35+
# NOTE: production does NOT pre-installs debugpy
36+
uv pip install --no-cache-dir debugpy
37+
fi
38+
3439
# RUNNING application ----------------------------------------
3540
#
3641
# - If DASK_START_AS_SCHEDULER is set, then it boots as scheduler otherwise as worker

0 commit comments

Comments
 (0)