-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0945569
commit 54d205d
Showing
6 changed files
with
33 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# NeSI training environment ML102 Jupyter app | ||
# NeSI training environment Intermediate Shell for Bioinformatics app | ||
|
||
JupyterLab app for running the ML102 workshop on the NeSI training environment. | ||
JupyterLab app for running Intermediate Shell for Bioinformatics on the NeSI training environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
name: ML102 | ||
name: Intermediate shell for bioinformatics | ||
category: Interactive Apps | ||
subcategory: Servers | ||
role: batch_connect | ||
description: | | ||
This app will launch a Jupyter Lab server for the ML102 workshop | ||
This app will launch a Jupyter Lab server for the intermediate shell for bioinformatics workshop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
# send all output to pod.log | ||
exec &> >(tee -a "${LOG_DIR}/pod.log") | ||
|
||
# Benchmark info | ||
echo "TIMING - Starting main script at: $(date)" | ||
|
||
# copying config file for debugging | ||
cp /ood/ondemand_config.py ./ | ||
|
||
# Set working directory to home directory | ||
cd "${HOME}" | ||
|
||
# | ||
# Start Jupyter Notebook Server | ||
# | ||
|
||
# Benchmark info | ||
echo "TIMING - Starting jupyter at: $(date)" | ||
|
||
# Launch the Jupyter Notebook Server | ||
set -x | ||
rsync --ignore-existing -avz /opt/ml102_workshop/ ~/ml102_workshop/ | ||
|
||
# copy data files | ||
# note: this will not overwrite files if they already exist, so changes won't | ||
# be lost when restarting the app | ||
mkdir -p ~/shell4b | ||
rsync --ignore-existing -avz /var/lib/puzzles_da/ ~/shell4b/puzzles_da/ | ||
rsync --ignore-existing -avz /var/lib/shell4b_data/ ~/shell4b/shell4b_data/ | ||
|
||
# launch JupyterLab | ||
jupyter lab --config="/ood/ondemand_config.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<form action="/node/<%= host %>/<%= port %>/login" method="post" target="_blank"> | ||
<input type="hidden" name="password" value="<%= password %>"> | ||
<button class="btn btn-primary" type="submit"> | ||
<i class="fa fa-registered"></i> Connect to ML102 JupyterLab | ||
<i class="fa fa-registered"></i> Connect to Intermediate Shell app | ||
</button> | ||
</form> | ||
|