Skip to content

Commit a222bdb

Browse files
committed
fix(experimental): point GDAL at the Debian CA bundle
The raster extension vendors a GDAL whose libcurl is built with the RedHat CA path (/etc/pki/tls/certs/ca-bundle.crt), which does not exist on the python:slim Debian base. Every /vsicurl/ read failed with 'CURL error: error setting certificate file' while RT_* functions themselves loaded fine, so the extension looked healthy right up until it touched the network.
1 parent eb331eb commit a222bdb

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Dockerfile.experimental

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ COPY . /app
2323
# default image, which therefore behaves exactly as before.
2424
ENV EXTRA_DUCKDB_EXTENSIONS=raster,zarr
2525

26+
# The raster extension ships its own GDAL, whose libcurl is compiled with the
27+
# RedHat CA path (/etc/pki/tls/certs/ca-bundle.crt). The base image is Debian, so
28+
# every /vsicurl/ read fails with "CURL error: error setting certificate file"
29+
# until GDAL is pointed at the Debian bundle. Both names are set because which one
30+
# a given GDAL build honours depends on how it was compiled.
31+
ENV GDAL_HTTP_CAINFO=/etc/ssl/certs/ca-certificates.crt \
32+
CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
33+
2634
ARG APP_VERSION=experimental
2735
ARG GIT_SHA=unknown
2836
ENV APP_VERSION=$APP_VERSION GIT_SHA=$GIT_SHA

k8s/experimental-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ spec:
4040
# extras a running pod believes it has without cracking open the image.
4141
- name: EXTRA_DUCKDB_EXTENSIONS
4242
value: "raster,zarr"
43+
# GDAL (vendored by the raster extension) looks for the RedHat CA path;
44+
# the image is Debian. Without this every /vsicurl/ read fails TLS. Also
45+
# set in the image — repeated here so it is visible and overridable.
46+
- name: GDAL_HTTP_CAINFO
47+
value: "/etc/ssl/certs/ca-certificates.crt"
48+
- name: CURL_CA_BUNDLE
49+
value: "/etc/ssl/certs/ca-certificates.crt"
4350
- name: POD_MEMORY_LIMIT
4451
valueFrom:
4552
resourceFieldRef:

0 commit comments

Comments
 (0)