-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathreclaim-manifest.jps
36 lines (33 loc) · 1.1 KB
/
reclaim-manifest.jps
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
type: install
name: Web Archives (GLAM Workbench)
settings:
fields:
- hideLabel: false
hidden: false
type: string
inputType: password
required: true
caption: Set a password for Jupyter
name: jupyterPassword
onInstall:
- cmd[cp]: chown -R jovyan:jovyan /home/jovyan/work
- cmd[cp]: python3 -c "from notebook.auth import passwd; print(passwd('${settings.jupyterPassword}', 'sha1'))"
- api:
- method: environment.control.SetContainerRunCmd
params:
nodeId: ${nodes.cp[0].id}
data: "jupyter lab --ip 0.0.0.0 --NotebookApp.password='${response.out}' --LabApp.default_url='/lab/tree/index.md'"
- method: environment.control.RestartNodes
params:
nodeGroup: cp
nodes:
nodeGroup: cp
cloudlets: 16
image: "quay.io/glamworkbench/web-archives:latest"
entrypoint: /usr/local/bin/repo2docker-entrypoint
volumes:
- /home/jovyan/work
ssl: true
success: |
**Juyter notebook URL**: [https://${env.domain}/](https://${env.domain}/)
**Password**: ${settings.jupyterPassword}