diff --git a/form.yml b/form.yml.erb similarity index 100% rename from form.yml rename to form.yml.erb diff --git a/script.sh.erb b/script.sh.erb deleted file mode 100644 index 54c185de20c40284afdb4f7c58609f1435863df8..0000000000000000000000000000000000000000 --- a/script.sh.erb +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -l - -# Set working directory to home directory -cd "${HOME}" -module reset -# -# Start Jupyter Notebook Server -# -module load Anaconda3 -<%= context.custom_environment %> -unset XDG_RUNTIME_DIR -# Launch the Jupyter Notebook Server -jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %> diff --git a/template/script.sh.erb b/template/script.sh.erb index 718951c8076fdf1f2b30da164f99f6b5d8a87672..54c185de20c40284afdb4f7c58609f1435863df8 100755 --- a/template/script.sh.erb +++ b/template/script.sh.erb @@ -1,29 +1,13 @@ -#!/usr/bin/env bash - -# Benchmark info -echo "TIMING - Starting main script at: $(date)" +#!/bin/bash -l # Set working directory to home directory cd "${HOME}" - +module reset # # Start Jupyter Notebook Server # - -<%- unless context.modules.blank? -%> -# Purge the module environment to avoid conflicts -module purge - -# Load the require modules -module load <%= context.modules %> - -# List loaded modules -module list -<%- end -%> - -# Benchmark info -echo "TIMING - Starting jupyter at: $(date)" - +module load Anaconda3 +<%= context.custom_environment %> +unset XDG_RUNTIME_DIR # Launch the Jupyter Notebook Server -set -x jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>