-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.yml
68 lines (68 loc) · 1.99 KB
/
app.yml
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
---
ocean:
version: "1"
images:
- name: jupyter
registry: docker_hub
image: jupyter/scipy-notebook
tag: latest
snapshottable: true
steps:
- engines:
- name: jupyter
networking:
dns:
enabled: true
default_value: jupyter
label: Jupyter URL
ports:
- name: jupyter
public: true
settings:
- name: mode
label: Jupyter Mode
style: dropdown
default_value: 'lab'
options:
- value: lab
label: 'Lab'
- value: notebook
label: 'Notebook'
vars:
- name: token
value: "{% generate_uuid %}"
deployment:
strategy: main
container:
image_name: jupyter
user: root
workdir: "/home/{{ workspace.user.name }}"
mounts:
app_files:
- name: jupyter_startup
app_files_path: /
container_path: /ocean/etc
readonly: true
data_stores: "{{ engines.jupyter.container.workdir }}"
command: "{{ engines.jupyter.container.mounts.app_files.jupyter_startup.container_path }}/startup.sh"
env_vars:
- name: JUPYTER_ENABLE_LAB
value: "{% if engines.jupyter.settings.mode.value == 'lab' %}yes{% else %}no{% endif %}"
- name: NB_UID
value: "{{ workspace.user.uid }}"
- name: NB_GID
value: "{{ workspace.user.gid }}"
- name: NB_USER
value: "{{ workspace.user.name }}"
- name: NB_GROUP
value: "{{ workspace.user.group }}"
- name: CHOWN_HOME
value: "yes"
- name: GRANT_SUDO
value: "yes"
- name: RESTARTABLE
value: "yes"
ui:
buttons:
- label: Open Jupyter
url: "http://{{ engines.jupyter.networking.dns.url }}:{{ engines.jupyter.networking.ports.jupyter.value }}?token={{ engines.jupyter.vars.token }}"