-
Notifications
You must be signed in to change notification settings - Fork 15
/
binder.yaml
55 lines (55 loc) · 1.13 KB
/
binder.yaml
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
apiVersion: container-canary.nvidia.com/v1
kind: Validator
name: binder
description: Binder
documentation: https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html#preparing-your-dockerfile
env: []
ports:
- port: 8888
protocol: TCP
volumes: []
command:
- jupyter
- lab
- --ip=0.0.0.0
- --port=8888
checks:
- name: jupyter
description: 🖥 Has jupyter installed
probe:
exec:
command:
- /bin/sh
- -c
- "which jupyter"
- name: user
description: 👩 User is jovyan
probe:
exec:
command:
- /bin/sh
- -c
- "[ $(whoami) = jovyan ]"
- name: uid
description: 🆔 User ID is 1000
probe:
exec:
command:
- /bin/sh
- -c
- "id | grep uid=1000"
- name: home
description: 🏠 Home directory is /home/jovyan
probe:
exec:
command:
- /bin/sh
- -c
- "[ $HOME = /home/jovyan ]"
- name: http
description: 🌏 Starts Jupyter on port 8888
probe:
httpGet:
path: /
port: 8888
failureThreshold: 30