Skip to content

Commit

Permalink
feat: add newly introduced prometheus no-auth flag
Browse files Browse the repository at this point in the history
feat: add newly introduced prometheus no-auth flag
  • Loading branch information
blairdrummond authored Feb 5, 2021
2 parents bbb53cb + cf1ee9b commit 5b9f0cf
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 35 deletions.
2 changes: 1 addition & 1 deletion output/JupyterLab-CPU-OL-compliant/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Conda
=====
It's recommended that you use conda to create virtual environments and
to insall R, Python, or Julia packages.
to install R, Python, or Julia packages.
Have fun!!!
Expand Down
9 changes: 5 additions & 4 deletions output/JupyterLab-CPU-OL-compliant/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if [ -n "${KF_LANG}" ]; then
export LANG="en_US.utf8"
else
export LANG="fr_CA.utf8"

# User's browser lang is set to french, open jupyterlab in french (fr_FR)
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
lang_file="/home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/translation-extension/plugin.jupyterlab-settings"
mkdir -p "$(dirname "${lang_file}")" && touch $lang_file
( echo '{'
Expand All @@ -42,7 +42,7 @@ if [ -n "${KF_LANG}" ]; then
echo ' // Définit la langue d'\''affichage de l'\''interface. Exemples: '\''es_CO'\'', '\''fr'\''.'
echo ' "locale": "'${LANG}'"'
echo '}'
) >> $lang_file
) >> $lang_file
fi
fi
fi
Expand All @@ -66,5 +66,6 @@ jupyter notebook --notebook-dir=/home/${NB_USER} \
--NotebookApp.token='' \
--NotebookApp.password='' \
--NotebookApp.allow_origin='*' \
--NotebookApp.authenticate_prometheus=False \
--NotebookApp.base_url=${NB_PREFIX} \
--NotebookApp.default_url=${DEFAULT_JUPYTER_URL:-/tree}
9 changes: 5 additions & 4 deletions output/JupyterLab-CPU/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if [ -n "${KF_LANG}" ]; then
export LANG="en_US.utf8"
else
export LANG="fr_CA.utf8"

# User's browser lang is set to french, open jupyterlab in french (fr_FR)
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
lang_file="/home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/translation-extension/plugin.jupyterlab-settings"
mkdir -p "$(dirname "${lang_file}")" && touch $lang_file
( echo '{'
Expand All @@ -42,7 +42,7 @@ if [ -n "${KF_LANG}" ]; then
echo ' // Définit la langue d'\''affichage de l'\''interface. Exemples: '\''es_CO'\'', '\''fr'\''.'
echo ' "locale": "'${LANG}'"'
echo '}'
) >> $lang_file
) >> $lang_file
fi
fi
fi
Expand All @@ -66,5 +66,6 @@ jupyter notebook --notebook-dir=/home/${NB_USER} \
--NotebookApp.token='' \
--NotebookApp.password='' \
--NotebookApp.allow_origin='*' \
--NotebookApp.authenticate_prometheus=False \
--NotebookApp.base_url=${NB_PREFIX} \
--NotebookApp.default_url=${DEFAULT_JUPYTER_URL:-/tree}
2 changes: 1 addition & 1 deletion output/JupyterLab-PyTorch-OL-compliant/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Conda
=====
It's recommended that you use conda to create virtual environments and
to insall R, Python, or Julia packages.
to install R, Python, or Julia packages.
Have fun!!!
Expand Down
9 changes: 5 additions & 4 deletions output/JupyterLab-PyTorch-OL-compliant/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if [ -n "${KF_LANG}" ]; then
export LANG="en_US.utf8"
else
export LANG="fr_CA.utf8"

# User's browser lang is set to french, open jupyterlab in french (fr_FR)
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
lang_file="/home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/translation-extension/plugin.jupyterlab-settings"
mkdir -p "$(dirname "${lang_file}")" && touch $lang_file
( echo '{'
Expand All @@ -42,7 +42,7 @@ if [ -n "${KF_LANG}" ]; then
echo ' // Définit la langue d'\''affichage de l'\''interface. Exemples: '\''es_CO'\'', '\''fr'\''.'
echo ' "locale": "'${LANG}'"'
echo '}'
) >> $lang_file
) >> $lang_file
fi
fi
fi
Expand All @@ -66,5 +66,6 @@ jupyter notebook --notebook-dir=/home/${NB_USER} \
--NotebookApp.token='' \
--NotebookApp.password='' \
--NotebookApp.allow_origin='*' \
--NotebookApp.authenticate_prometheus=False \
--NotebookApp.base_url=${NB_PREFIX} \
--NotebookApp.default_url=${DEFAULT_JUPYTER_URL:-/tree}
9 changes: 5 additions & 4 deletions output/JupyterLab-PyTorch/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if [ -n "${KF_LANG}" ]; then
export LANG="en_US.utf8"
else
export LANG="fr_CA.utf8"

# User's browser lang is set to french, open jupyterlab in french (fr_FR)
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
lang_file="/home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/translation-extension/plugin.jupyterlab-settings"
mkdir -p "$(dirname "${lang_file}")" && touch $lang_file
( echo '{'
Expand All @@ -42,7 +42,7 @@ if [ -n "${KF_LANG}" ]; then
echo ' // Définit la langue d'\''affichage de l'\''interface. Exemples: '\''es_CO'\'', '\''fr'\''.'
echo ' "locale": "'${LANG}'"'
echo '}'
) >> $lang_file
) >> $lang_file
fi
fi
fi
Expand All @@ -66,5 +66,6 @@ jupyter notebook --notebook-dir=/home/${NB_USER} \
--NotebookApp.token='' \
--NotebookApp.password='' \
--NotebookApp.allow_origin='*' \
--NotebookApp.authenticate_prometheus=False \
--NotebookApp.base_url=${NB_PREFIX} \
--NotebookApp.default_url=${DEFAULT_JUPYTER_URL:-/tree}
2 changes: 1 addition & 1 deletion output/JupyterLab-Tensorflow-OL-compliant/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Conda
=====
It's recommended that you use conda to create virtual environments and
to insall R, Python, or Julia packages.
to install R, Python, or Julia packages.
Have fun!!!
Expand Down
9 changes: 5 additions & 4 deletions output/JupyterLab-Tensorflow-OL-compliant/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if [ -n "${KF_LANG}" ]; then
export LANG="en_US.utf8"
else
export LANG="fr_CA.utf8"

# User's browser lang is set to french, open jupyterlab in french (fr_FR)
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
lang_file="/home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/translation-extension/plugin.jupyterlab-settings"
mkdir -p "$(dirname "${lang_file}")" && touch $lang_file
( echo '{'
Expand All @@ -42,7 +42,7 @@ if [ -n "${KF_LANG}" ]; then
echo ' // Définit la langue d'\''affichage de l'\''interface. Exemples: '\''es_CO'\'', '\''fr'\''.'
echo ' "locale": "'${LANG}'"'
echo '}'
) >> $lang_file
) >> $lang_file
fi
fi
fi
Expand All @@ -66,5 +66,6 @@ jupyter notebook --notebook-dir=/home/${NB_USER} \
--NotebookApp.token='' \
--NotebookApp.password='' \
--NotebookApp.allow_origin='*' \
--NotebookApp.authenticate_prometheus=False \
--NotebookApp.base_url=${NB_PREFIX} \
--NotebookApp.default_url=${DEFAULT_JUPYTER_URL:-/tree}
9 changes: 5 additions & 4 deletions output/JupyterLab-Tensorflow/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if [ -n "${KF_LANG}" ]; then
export LANG="en_US.utf8"
else
export LANG="fr_CA.utf8"

# User's browser lang is set to french, open jupyterlab in french (fr_FR)
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
lang_file="/home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/translation-extension/plugin.jupyterlab-settings"
mkdir -p "$(dirname "${lang_file}")" && touch $lang_file
( echo '{'
Expand All @@ -42,7 +42,7 @@ if [ -n "${KF_LANG}" ]; then
echo ' // Définit la langue d'\''affichage de l'\''interface. Exemples: '\''es_CO'\'', '\''fr'\''.'
echo ' "locale": "'${LANG}'"'
echo '}'
) >> $lang_file
) >> $lang_file
fi
fi
fi
Expand All @@ -66,5 +66,6 @@ jupyter notebook --notebook-dir=/home/${NB_USER} \
--NotebookApp.token='' \
--NotebookApp.password='' \
--NotebookApp.allow_origin='*' \
--NotebookApp.authenticate_prometheus=False \
--NotebookApp.base_url=${NB_PREFIX} \
--NotebookApp.default_url=${DEFAULT_JUPYTER_URL:-/tree}
9 changes: 5 additions & 4 deletions output/RStudio/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if [ -n "${KF_LANG}" ]; then
export LANG="en_US.utf8"
else
export LANG="fr_CA.utf8"

# User's browser lang is set to french, open jupyterlab in french (fr_FR)
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
lang_file="/home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/translation-extension/plugin.jupyterlab-settings"
mkdir -p "$(dirname "${lang_file}")" && touch $lang_file
( echo '{'
Expand All @@ -42,7 +42,7 @@ if [ -n "${KF_LANG}" ]; then
echo ' // Définit la langue d'\''affichage de l'\''interface. Exemples: '\''es_CO'\'', '\''fr'\''.'
echo ' "locale": "'${LANG}'"'
echo '}'
) >> $lang_file
) >> $lang_file
fi
fi
fi
Expand All @@ -66,5 +66,6 @@ jupyter notebook --notebook-dir=/home/${NB_USER} \
--NotebookApp.token='' \
--NotebookApp.password='' \
--NotebookApp.allow_origin='*' \
--NotebookApp.authenticate_prometheus=False \
--NotebookApp.base_url=${NB_PREFIX} \
--NotebookApp.default_url=${DEFAULT_JUPYTER_URL:-/tree}
9 changes: 5 additions & 4 deletions resources/start-custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ if [ -n "${KF_LANG}" ]; then
export LANG="en_US.utf8"
else
export LANG="fr_CA.utf8"

# User's browser lang is set to french, open jupyterlab in french (fr_FR)
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
if [ "${DEFAULT_JUPYTER_URL}" != "/rstudio" ]; then
export LANG="fr_FR"
lang_file="/home/${NB_USER}/.jupyter/lab/user-settings/@jupyterlab/translation-extension/plugin.jupyterlab-settings"
mkdir -p "$(dirname "${lang_file}")" && touch $lang_file
( echo '{'
Expand All @@ -42,7 +42,7 @@ if [ -n "${KF_LANG}" ]; then
echo ' // Définit la langue d'\''affichage de l'\''interface. Exemples: '\''es_CO'\'', '\''fr'\''.'
echo ' "locale": "'${LANG}'"'
echo '}'
) >> $lang_file
) >> $lang_file
fi
fi
fi
Expand All @@ -66,5 +66,6 @@ jupyter notebook --notebook-dir=/home/${NB_USER} \
--NotebookApp.token='' \
--NotebookApp.password='' \
--NotebookApp.allow_origin='*' \
--NotebookApp.authenticate_prometheus=False \
--NotebookApp.base_url=${NB_PREFIX} \
--NotebookApp.default_url=${DEFAULT_JUPYTER_URL:-/tree}

0 comments on commit 5b9f0cf

Please sign in to comment.