mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Use shellcheck source to point the sourced file
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# Setup environment
|
||||
# shellcheck disable=SC1091
|
||||
# shellcheck source=examples/docker-compose/notebook/env.sh
|
||||
source "${DIR}/env.sh"
|
||||
|
||||
# Build the notebook image
|
||||
|
@@ -5,7 +5,7 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# Setup environment
|
||||
# shellcheck disable=SC1091
|
||||
# shellcheck source=examples/docker-compose/notebook/env.sh
|
||||
source "${DIR}/env.sh"
|
||||
|
||||
# Bring down the notebook container, using container name as project name
|
||||
|
@@ -58,7 +58,7 @@ else
|
||||
fi
|
||||
|
||||
# Setup environment
|
||||
# shellcheck disable=SC1091
|
||||
# shellcheck source=examples/docker-compose/notebook/env.sh
|
||||
source "${DIR}/env.sh"
|
||||
|
||||
# Create a Docker volume to store notebooks
|
||||
|
@@ -46,7 +46,7 @@ fi
|
||||
|
||||
|
||||
# NOTE: This hook will run as the user the container was started with!
|
||||
# shellcheck disable=SC1091
|
||||
# shellcheck source=images/docker-stacks-foundation/run-hooks.sh
|
||||
source /usr/local/bin/run-hooks.sh /usr/local/bin/start-notebook.d
|
||||
|
||||
# If the container started as the root user, then we have permission to refit
|
||||
@@ -150,7 +150,7 @@ if [ "$(id -u)" == 0 ]; then
|
||||
fi
|
||||
|
||||
# NOTE: This hook is run as the root user!
|
||||
# shellcheck disable=SC1091
|
||||
# shellcheck source=images/docker-stacks-foundation/run-hooks.sh
|
||||
source /usr/local/bin/run-hooks.sh /usr/local/bin/before-notebook.d
|
||||
unset_explicit_env_vars
|
||||
|
||||
@@ -251,7 +251,7 @@ else
|
||||
fi
|
||||
|
||||
# NOTE: This hook is run as the user we started the container as!
|
||||
# shellcheck disable=SC1091
|
||||
# shellcheck source=images/docker-stacks-foundation/run-hooks.sh
|
||||
source /usr/local/bin/run-hooks.sh /usr/local/bin/before-notebook.d
|
||||
unset_explicit_env_vars
|
||||
|
||||
|
Reference in New Issue
Block a user