-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.yml.erb
95 lines (88 loc) · 2.71 KB
/
form.yml.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<%-
groups = OodSupport::User.new.groups.sort_by(&:id).tap { |groups|
groups.unshift(groups.delete(OodSupport::Process.group))
}.map(&:name).grep(/.*[0-9]{5}/)
-%>
# Batch Connect app configuration file
#
# @note Used to define the submitted cluster, title, description, and
# hard-coded/user-defined attributes that make up this Batch Connect app.
---
# **MUST** set cluster id here that matches cluster configuration file located
# under /etc/ood/config/clusters.d/*.yml
# @example Use the Owens cluster at Ohio Supercomputer Center
# cluster: "owens"
cluster: "my-k8s-cluster"
# Define attribute values that aren't meant to be modified by the user within
# the Dashboard form
attributes:
# Set the corresponding modules that need to be loaded for Jupyter to run
#
# @note It is called within the batch job as `module load <modules>` if
# defined
# @example Do not load any modules
# modules: ""
# @example Using default python module
# modules: "python"
# @example Using specific python module
# modules: "python/3.5"
# @example Using combination of modules
# modules: "python/3.5 cuda/8.0.44"
jupyterlab_module:
widget: select
label: "JupyterLab module"
options:
- [ "2024.08.2-foss-2023a-4.2.4", "JupyterLab/2024.08.2-foss-2023a-4.2.4" ]
# - [ "2024.08.1-foss-2023a-4.2.4", "JupyterLab/.2024.08.1-foss-2023a-4.2.4" ]
# - [ "2024.08.0-foss-2023a-4.2.4", "JupyterLab/2024.08.0-foss-2023a-4.2.4" ]
# Any extra command line arguments to feed to the `jupyter notebook ...`
# command that launches the Jupyter notebook within the batch job
extra_jupyter_args: ""
node: ""
account:
label: "Project Code"
widget: select
options:
<%- groups.each do |group| %>
- "<%= group %>"
<%- end %>
required: true
bc_num_hours:
max: 24
min: 1
step: 1
value: 1
widget: number_field
num_cores:
label: Number of cores
min: 1
value: 2
max: 4
widget: number_field
num_mem:
label: Memory per job (GB)
max: 64
min: 2
step: 1
value: 2
widget: number_field
# All of the attributes that make up the Dashboard form (in respective order),
# and made available to the submit configuration file and the template ERB
# files
#
# @note You typically do not need to modify this unless you want to add a new
# configurable value
# @note If an attribute listed below is hard-coded above in the `attributes`
# option, then it will not appear in the form page that the user sees in the
# Dashboard
form:
- account
- jupyterlab_module
- extra_jupyter_args
- bc_num_hours
- num_cores
- num_mem
- node
description: Request a Jupyter Lab server
submit: submit.yml.erb
title: Jupyter Lab