File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
registry/coder/modules/jupyter-notebook Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ if [ -n "$REQUIREMENTS_PATH" ]; then
3131 fi
3232fi
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"
3939fi
4040
You can’t perform that action at this time.
0 commit comments