mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-08 02:24:04 +00:00
Fix all shellcheck warnings
This commit is contained in:
@@ -18,10 +18,10 @@ set -e
|
||||
|
||||
# letsencrypt certificate server type (default is production).
|
||||
# Set `CERT_SERVER=--staging` for staging.
|
||||
: ${CERT_SERVER=''}
|
||||
: "${CERT_SERVER=''}"
|
||||
|
||||
# Create Docker volume to contain the cert
|
||||
: ${SECRETS_VOLUME:=my-notebook-secrets}
|
||||
: "${SECRETS_VOLUME:=my-notebook-secrets}"
|
||||
docker volume create --name $SECRETS_VOLUME 1>/dev/null
|
||||
# Generate the cert and save it to the Docker volume
|
||||
docker run --rm -it \
|
||||
|
@@ -3,9 +3,9 @@
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
# Set reasonable default VM settings
|
||||
: ${VIRTUALBOX_CPUS:=4}
|
||||
: "${VIRTUALBOX_CPUS:=4}"
|
||||
export VIRTUALBOX_CPUS
|
||||
: ${VIRTUALBOX_MEMORY_SIZE:=4096}
|
||||
: "${VIRTUALBOX_MEMORY_SIZE:=4096}"
|
||||
export VIRTUALBOX_MEMORY_SIZE
|
||||
|
||||
docker-machine create --driver virtualbox "$@"
|
||||
|
@@ -5,6 +5,7 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# Setup environment
|
||||
# shellcheck disable=SC1091
|
||||
source "$DIR/env.sh"
|
||||
|
||||
# Build the notebook image
|
||||
|
@@ -5,6 +5,7 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
# Setup environment
|
||||
# shellcheck disable=SC1091
|
||||
source "$DIR/env.sh"
|
||||
|
||||
# Bring down the notebook container, using container name as project name
|
||||
|
@@ -10,7 +10,7 @@
|
||||
export NAME
|
||||
|
||||
# Exposed container port
|
||||
: ${PORT:=80}
|
||||
: "${PORT:=80}"
|
||||
export PORT
|
||||
|
||||
# Container work volume name
|
||||
|
@@ -58,6 +58,7 @@ else
|
||||
fi
|
||||
|
||||
# Setup environment
|
||||
# shellcheck disable=SC1091
|
||||
source "$DIR/env.sh"
|
||||
|
||||
# Create a Docker volume to store notebooks
|
||||
|
Reference in New Issue
Block a user