Skip to content

Commit 4333940

Browse files
committed
Modify run.sh
1 parent 9b3afc2 commit 4333940

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

registry/coder/modules/jupyter-notebook/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ variable "requirements_path" {
5454
default = ""
5555
}
5656

57-
variable "pip_install_packages" {
57+
variable "pip_install_extra_packages" {
5858
type = string
59-
description = "List of packages to preinstall (example: numpy==1.26.4 pandas matplotlib<4 scikit-learn)"
59+
description = "List of extra packages to preinstall (example: numpy==1.26.4 pandas matplotlib<4 scikit-learn)"
6060
default = ""
6161
}
6262

@@ -68,7 +68,7 @@ resource "coder_script" "jupyter-notebook" {
6868
LOG_PATH : var.log_path,
6969
PORT : var.port,
7070
REQUIREMENTS_PATH : var.requirements_path,
71-
PIP_INSTALL_PACKAGES : var.pip_install_packages
71+
PIP_INSTALL_EXTRA_PACKAGES : var.pip_install_extra_packages
7272
})
7373
run_on_start = true
7474
}

registry/coder/modules/jupyter-notebook/run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ if [ -n "$REQUIREMENTS_PATH" ]; then
3131
fi
3232
fi
3333

34-
# Install packages selected with PIP_INSTALL_PACKAGES
35-
if [ -n "$PIP_INSTALL_PACKAGES" ]; then
36-
echo "📦 Installing extra pip packages: $PIP_INSTALL_PACKAGES"
37-
pip install --no-cache-dir $PIP_INSTALL_PACKAGES
34+
# Install packages selected with PIP_INSTALL_EXTRA_PACKAGES
35+
if [ -n "$PIP_INSTALL_EXTRA_PACKAGES" ]; then
36+
echo "📦 Installing extra pip packages: $PIP_INSTALL_EXTRA_PACKAGES"
37+
pip install --no-cache-dir $PIP_INSTALL_EXTRA_PACKAGES
3838
echo "🥳 Extra packages installed\n\n"
3939
fi
4040

0 commit comments

Comments
 (0)