-
Notifications
You must be signed in to change notification settings - Fork 314
/
Copy pathjupyterhub-k8s-hub.yaml
100 lines (93 loc) · 2.79 KB
/
jupyterhub-k8s-hub.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
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
96
97
98
99
100
package:
name: jupyterhub-k8s-hub
version: "4.1.0"
epoch: 0
description: Zero to JupyterHub with Kubernetes
copyright:
- license: BSD-3-Clause
dependencies:
runtime:
- configurable-http-proxy
- iptables
- py3-jupyterhub
- py3-jupyterhub-firstuseauthenticator
- py3-jupyterhub-hmacauthenticator
- py3-jupyterhub-idle-culler
- py3-jupyterhub-kubespawner
- py3-jupyterhub-ldapauthenticator
- py3-jupyterhub-ltiauthenticator
- py3-jupyterhub-nativeauthenticator
- py3-jupyterhub-tmpauthenticator
- py3-kubernetes-asyncio
- py3-mwoauth
- py3-nullauthenticator
- py3-oauthenticator
- py3-psycopg2
- py3-pycurl
- py3-pyjwt
- py3-pymysql
- py3-python-dateutil
- py3-sqlalchemy-cockroachdb
- py3-statsd
- py3-tornado
- python3
- tini
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- python3
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://github.com/jupyterhub/zero-to-jupyterhub-k8s
tag: ${{package.version}}
expected-commit: 2421cc409465aea9f3e35e20f6bf4f3bc4e60064
- runs: |
mkdir -p "${{targets.destdir}}"/etc/jupyterhub
cp -r jupyterhub/files/hub/* "${{targets.destdir}}"/etc/jupyterhub/
- uses: strip
subpackages:
- name: ${{package.name}}-compat
description: "Compatibility package to place binaries in the location expected by jupyterhub-k8s-hub"
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/local/etc/jupyterhub
ln -sf /etc/jupyterhub/jupyterhub_config.py ${{targets.subpkgdir}}/usr/local/etc/jupyterhub/jupyterhub_config.py
ln -sf /etc/jupyterhub/z2jh.py ${{targets.subpkgdir}}/usr/local/etc/jupyterhub/z2jh.py
dependencies:
runtime:
- jupyterhub-k8s-hub
update:
enabled: true
github:
identifier: jupyterhub/zero-to-jupyterhub-k8s
test:
environment:
contents:
packages:
- openssl # Fixes: RuntimeError: OpenSSL 3.0's legacy provider failed to load.
- curl
pipeline:
- name: Jupyterhub daemon test.
uses: test/daemon-check-output
with:
start: /usr/bin/jupyterhub
setup: echo "127.0.0.1 $(hostname)" >> /etc/hosts
expected_output: "JupyterHub is now running"
post: |
#!/bin/sh -e
url=http://127.0.0.1:8000/_chp_healthz
response=$(curl -s "$url") || {
echo "curl ${url} failed $?"
exit 1
}
echo "$response" | grep -qi OK || {
echo "response from $url did not contain \"OK\""
echo "response: $response"
exit 1
}
echo "$url had expected output: $response"