This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.yml.erb
83 lines (73 loc) · 1.72 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
<%-
app_name = 'VS Code Server'
paths = []
paths << Pathname.new("/scratch/#{User.new.name}")
projects = User.new.groups.map(&:name).grep(/^hb-./)
paths.concat projects.map { |p| Pathname.new("/scratch/#{p}") }
-%>
---
title: <%= app_name %>
cluster: "login1"
form:
- node_type
- version
- num_hours
- num_cores
- memory
- start_folder
- bc_vnc_resolution
attributes:
node_type:
label: Node Type
help: |
Select the type of node you would like to use. For information on the different options, please see
[our wiki](https://wiki.hpc.rug.nl/habrok/introduction/cluster_description#compute_nodes)
widget: select
options:
- [ "Regular", "regular" ]
- [ "Himem", "himem" ]
- [ "GPU (A100)", "gpua100" ]
- [ "GPU (V100)", "gpuv100" ]
- [ "GELIFES", "gelifes" ]
version:
widget: "select"
label: "Code Server Version"
options:
- ["4.89.1", "code-server/4.89.1"]
num_hours:
label: Number of hours
widget: 'number_field'
help: "Please give the maximum wall time in hours"
value: 2
min: 1
step: 1
max: 12
num_cores:
widget: number_field
label: Number of CPU cores
value: 1
id: 'num_cores'
help: |
Select the number of CPU cores.
min: 1
step: 1
max: 128
memory:
label: Memory
help: Amount of memory requested, in GB
widget: 'number_field'
value: 2
min: 1
step: 1
start_folder:
label: VSCode root folder
help: Where should the VSCode server start?
<%- if paths.blank? -%>
widget: text_field
<%- else -%>
widget: select
options:
<%- paths.each do |q| -%>
- [ "<%= q %>", "<%= q %>" ]
<%- end -%>
<%- end -%>