From 529917c040ed3c9213ede5646ff94338f1319ab4 Mon Sep 17 00:00:00 2001 From: Krish Moodbidri <krish94@uab.edu> Date: Fri, 12 Aug 2022 10:36:29 -0500 Subject: [PATCH] V1.1 (#2) * moved script to template dir * added v1.0 as a stable version * fixed permission issue anf clustername * changed form.yml to form.yml.erb * edited form.yml.erb * edited submit.yml to remove conditional --- form.yml => form.yml.erb | 0 script.sh.erb | 13 ------------- template/script.sh.erb | 26 +++++--------------------- 3 files changed, 5 insertions(+), 34 deletions(-) rename form.yml => form.yml.erb (100%) delete mode 100644 script.sh.erb 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 54c185d..0000000 --- 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 718951c..54c185d 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 %> -- GitLab