Skip to content

Commit af901a0

Browse files
committed
Merge remote-tracking branch 'upstream/main' into rhoai-3.0
2 parents 5510982 + 85f8df9 commit af901a0

File tree

48 files changed

+4884
-4262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+4884
-4262
lines changed

codeserver/ubi9-python-3.12/nginx/serverconf/proxy.conf.template_nbprefix

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# api calls from probes get to code-server /healthz endpoint
33
###############
44
location = ${NB_PREFIX}/api {
5-
return 302 /codeserver/healthz/;
5+
return 302 ${NB_PREFIX}/codeserver/healthz/;
66
access_log off;
77
}
88

99
location ${NB_PREFIX}/api/ {
10-
return 302 /codeserver/healthz/;
10+
return 302 ${NB_PREFIX}/codeserver/healthz/;
1111
access_log off;
1212
}
1313
###############
@@ -16,12 +16,12 @@ location ${NB_PREFIX}/api/ {
1616
# api calls from culler get to CGI processing
1717
###############
1818
location = ${NB_PREFIX}/api/kernels {
19-
return 302 $custom_scheme://$http_host/api/kernels/;
19+
return 302 $custom_scheme://$http_host${NB_PREFIX}/api/kernels/;
2020
access_log off;
2121
}
2222

2323
location ${NB_PREFIX}/api/kernels/ {
24-
return 302 $custom_scheme://$http_host/api/kernels/;
24+
return 302 $custom_scheme://$http_host${NB_PREFIX}/api/kernels/;
2525
access_log off;
2626
}
2727

@@ -39,32 +39,34 @@ location /api/kernels/ {
3939
###############
4040
# root and prefix get to code-server endpoint
4141
###############
42-
location = ${NB_PREFIX} {
43-
return 302 $custom_scheme://$http_host/codeserver/;
44-
}
45-
46-
location ${NB_PREFIX}/ {
47-
return 302 $custom_scheme://$http_host/codeserver/;
42+
location ${NB_PREFIX} {
43+
return 302 $custom_scheme://$http_host${NB_PREFIX}/codeserver/;
4844
}
4945

5046
location = /codeserver {
51-
return 302 $custom_scheme://$http_host/codeserver/;
47+
return 302 $custom_scheme://$http_host${NB_PREFIX}/codeserver/;
5248
}
5349

5450
location = / {
55-
return 302 $custom_scheme://$http_host/codeserver/;
51+
return 302 $custom_scheme://$http_host${NB_PREFIX}/codeserver/;
5652
}
5753

58-
location /codeserver/ {
59-
rewrite ^/codeserver/(.*)$ /$1 break;
60-
# Standard RStudio/NGINX configuration
54+
location ${NB_PREFIX}/codeserver/ {
55+
rewrite ^${NB_PREFIX}/codeserver/(.*)$ /$1 break;
56+
# Standard code-server/NGINX configuration
6157
proxy_pass http://workbench_server/;
6258
proxy_http_version 1.1;
63-
6459
proxy_set_header Upgrade $http_upgrade;
6560
proxy_set_header Connection $connection_upgrade;
6661
proxy_read_timeout 20d;
62+
63+
# Needed to make it work properly
64+
proxy_set_header X-Real-IP $remote_addr;
65+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
6766
proxy_set_header X-Forwarded-Proto $custom_scheme;
67+
proxy_set_header Host $http_host;
68+
proxy_set_header X-NginX-Proxy true;
69+
proxy_redirect off;
6870

6971
access_log /var/log/nginx/codeserver.access.log json if=$loggable;
7072
}

codeserver/ubi9-python-3.12/pylock.toml

Lines changed: 264 additions & 245 deletions
Large diffs are not rendered by default.

codeserver/ubi9-python-3.12/pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ dependencies = [
99
"setuptools~=80.9.0",
1010

1111
# Datascience packages
12-
"boto3~=1.40.27",
12+
"boto3~=1.40.52",
1313
"kafka-python-ng~=2.2.3",
14-
"matplotlib~=3.10.6",
15-
"numpy~=2.3.3",
16-
"pandas~=2.3.2",
17-
"plotly~=6.3.0",
14+
"matplotlib~=3.10.7",
15+
"numpy~=2.3.4",
16+
"pandas~=2.3.3",
17+
"plotly~=6.3.1",
1818
"scikit-learn~=1.7.2",
19-
"scipy~=1.16.1",
19+
"scipy~=1.16.2",
2020
"skl2onnx~=1.19.1; platform_machine != 's390x'",
2121
"ipykernel~=6.30.1",
2222
"kubeflow-training==1.9.3",
@@ -25,9 +25,9 @@ dependencies = [
2525
# Some extra useful packages
2626
"opencensus~=0.11.4",
2727
"smart-open~=7.3.1",
28-
"virtualenv~=20.34.0",
28+
"virtualenv~=20.35.3",
2929
"py-spy~=0.4.1; platform_machine != 's390x'",
30-
"prometheus-client~=0.22.1",
30+
"prometheus-client~=0.23.1",
3131
]
3232

3333
[tool.uv]

codeserver/ubi9-python-3.12/run-nginx.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ fi
1818
if [ -z "$NB_PREFIX" ]; then
1919
cp /opt/app-root/etc/nginx.default.d/proxy.conf.template /opt/app-root/etc/nginx.default.d/proxy.conf
2020
else
21-
export BASE_URL=$(echo $NB_PREFIX | awk -F/ '{ print $4"-"$3 }')$(echo $NOTEBOOK_ARGS | grep -Po 'hub_host":"\K.*?(?=")' | awk -F/ '{ print $3 }' | awk -F. '{for (i=2; i<=NF; i++) printf ".%s", $i}')
21+
export BASE_URL=$(echo "$NB_PREFIX" | awk -F/ '{ print $4"-"$3 }')$(echo "$NOTEBOOK_ARGS" | grep -Po 'hub_host":"\K.*?(?=")' | awk -F/ '{ print $3 }' | awk -F. '{for (i=2; i<=NF; i++) printf ".%s", $i}')
22+
# If BASE_URL is empty or invalid (missing hub_host), use wildcard server_name
23+
if [ -z "$BASE_URL" ] || [ "$BASE_URL" = "$(echo "$NB_PREFIX" | awk -F/ '{ print $4"-"$3 }')" ]; then
24+
export BASE_URL="_"
25+
fi
2226
envsubst '${NB_PREFIX},${BASE_URL}' < /opt/app-root/etc/nginx.default.d/proxy.conf.template_nbprefix > /opt/app-root/etc/nginx.default.d/proxy.conf
2327
envsubst '${BASE_URL}' < /etc/nginx/nginx.conf | tee /etc/nginx/nginx.conf
2428
fi

jupyter/datascience/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \
136136
-DARROW_WITH_LZ4=OFF \
137137
-DARROW_WITH_ZSTD=OFF \
138138
-DARROW_WITH_SNAPPY=OFF \
139+
-DARROW_S3=ON \
140+
-DARROW_SUBSTRAIT=ON \
139141
-DARROW_BUILD_TESTS=OFF \
140142
-DARROW_BUILD_BENCHMARKS=OFF \
141143
.. && \

0 commit comments

Comments
 (0)