Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bc_uab_jupyterlab_singularity
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RC Data Science
community-ood-sandbox
bc_uab_jupyterlab_singularity
Compare revisions
master to 89199a5dfdd57b5c9fbb43acf4bde5e3f50a6f7a
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
rc-data-science/community-ood-sandbox/bc_uab_jupyterlab_singularity
Select target project
No results found
89199a5dfdd57b5c9fbb43acf4bde5e3f50a6f7a
Select Git revision
Branches
master
Swap
Target
rc/bc_uab_jupyterlab
Select target project
rc/bc_uab_jupyterlab
louistw/bc_uab_jupyterlab
rc-data-science/community-ood-sandbox/bc_uab_jupyterlab_singularity
3 results
master
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
add singularity options to the form and script
· 89199a5d
Matthew K Defenderfer
authored
1 year ago
89199a5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
form.yml.erb
+17
-8
17 additions, 8 deletions
form.yml.erb
template/script.sh.erb
+3
-2
3 additions, 2 deletions
template/script.sh.erb
with
20 additions
and
10 deletions
form.yml.erb
View file @
89199a5d
...
...
@@ -14,12 +14,12 @@
cluster: "SLURM_CLUSTER"
# Title of the app displayed in the Dashboard
title: "JupyterLab"
title: "JupyterLab
Singularity
"
# Description of the app displayed in the Dashboard (can use multi-line string
# and Markdown syntax)
description: |
This app will launch a JupyterLab server on one or more cores.
This app will launch a JupyterLab server on one or more cores
from a given Singularity container
.
# Define attribute values that aren't meant to be modified by the user within
# the Dashboard form
...
...
@@ -40,12 +40,9 @@ attributes:
widget: text_area
label: Environment Setup
value: |
# The latest version of Anaconda3 with jupyter is loaded by default.
# If you would like to load other modules
# or use specific version of Anaconda please list below
#
# format:
# module load example_module/VERSION example_module2
# load any other modules you may need here such as CUDA
# DO NOT LOAD Anaconda3 or Singularity, these are already
# taken care of
# Whether Conda extensions will be available within the JupyterLab
# server
...
...
@@ -59,6 +56,16 @@ attributes:
# @see https://docs.continuum.io/anaconda/user-guide/tasks/use-jupyter-notebook-extensions
conda_extensions: "1"
# User needs to set the path to the container
container_path:
widget: text_field
label: Path to Container File
# Any extra command line arguments to pass to `singularity exec ...`
extra_singularity_args:
widget: text_field
label: Extra Singularity arguments
# Any extra command line arguments to feed to the `jupyter-lab ...`
# command that launches the JupyterLab within the batch job
extra_jupyter_args:
...
...
@@ -112,6 +119,8 @@ attributes:
form:
- custom_environment
- conda_extensions
- container_path
- extra_singularity_args
- extra_jupyter_args
- bc_num_hours
- bc_partition
...
...
This diff is collapsed.
Click to expand it.
template/script.sh.erb
View file @
89199a5d
...
...
@@ -6,8 +6,9 @@ module reset
#
# Start JupyterLab Server
#
module load Anaconda3
<%=
context
.
custom_environment
.
gsub
(
/\r\n?/
,
"
\n
"
)
%>
unset XDG_RUNTIME_DIR
export SINGULARITY_BINDPATH='/data,/scratch,/local,/share'
# Launch the JupyterLab Server
jupyter-lab --config="${CONFIG_FILE}"
<%=
context
.
extra_jupyter_args
%>
singularity exec
<%=
context
.
extra_singularity_args
%>
<%=
context
.
container_path
%>
jupyter-lab --config="${CONFIG_FILE}"
<%=
context
.
extra_jupyter_args
%>
This diff is collapsed.
Click to expand it.