Skip to content

Commit 16e89bd

Browse files
authored
Debian Trixie and more vulnerabilities fixed (#16)
* Fix tests * Restore whitespace back * Switch to Debian trixie * Fix setuptools and upgrade simba ODBC * Upgrade werkzeug to 3.x * Medium risk vuln python library updates * Fix default port (mirror upstream repo)
1 parent c8a2ad7 commit 16e89bd

File tree

4 files changed

+144
-46
lines changed

4 files changed

+144
-46
lines changed

Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-bookworm AS frontend-builder
1+
FROM node:20-trixie AS frontend-builder
22

33
RUN npm install --global --force [email protected]
44

@@ -19,7 +19,6 @@ COPY --chown=redash scripts /frontend/scripts
1919
# Controls whether to instrument code for coverage information
2020
ARG code_coverage
2121
ENV BABEL_ENV=${code_coverage:+test}
22-
ENV GITHUB_PAT=${GITHUB_PAT}
2322

2423
# Avoid issues caused by lags in disk and network I/O speeds when working on top of QEMU emulation for multi-platform image building.
2524
RUN yarn config set network-timeout 300000
@@ -38,12 +37,15 @@ RUN <<EOF
3837
fi
3938
EOF
4039

41-
FROM python:3.11-slim-bookworm
40+
FROM python:3.11-slim-trixie
4241

4342
EXPOSE 5000
4443

4544
RUN useradd --create-home redash
4645

46+
# Add Debian trixie-proposed-updates repository
47+
RUN echo "deb http://deb.debian.org/debian trixie-proposed-updates main" > /etc/apt/sources.list.d/trixie-proposed-updates.list
48+
4749
# Ubuntu packages
4850
RUN apt-get update && \
4951
apt-get install -y --no-install-recommends \
@@ -75,11 +77,11 @@ RUN apt-get update && \
7577

7678

7779
ARG TARGETPLATFORM
78-
ARG databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.6.26/SimbaSparkODBC-2.6.26.1045-Debian-64bit.zip
80+
ARG databricks_odbc_driver_url=https://databricks-bi-artifacts.s3.us-east-2.amazonaws.com/simbaspark-drivers/odbc/2.9.2/SimbaSparkODBC-2.9.2.1008-Debian-64bit.zip
7981
RUN <<EOF
8082
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then
8183
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg
82-
curl https://packages.microsoft.com/config/debian/12/prod.list > /etc/apt/sources.list.d/mssql-release.list
84+
curl https://packages.microsoft.com/config/debian/13/prod.list > /etc/apt/sources.list.d/mssql-release.list
8385
apt-get update
8486
ACCEPT_EULA=Y apt-get install -y --no-install-recommends msodbcsql18
8587
apt-get clean
@@ -110,7 +112,9 @@ ARG POETRY_OPTIONS="--no-root --no-ansi --no-interaction"
110112
# disabled by default due to GPL license conflict
111113
ARG install_groups="main,all_ds,dev"
112114
RUN --mount=type=cache,target=/root/.cache/pypoetry \
113-
/etc/poetry/bin/poetry install --only $install_groups $POETRY_OPTIONS
115+
/etc/poetry/bin/poetry install --only $install_groups $POETRY_OPTIONS && \
116+
/etc/poetry/bin/poetry add "setuptools@latest"
117+
RUN rm -rf /etc/poetry/venv/lib/python3.11/site-packages/setuptools-65.5.0.dist-info/
114118

115119
COPY --chown=redash . /app
116120
COPY --from=frontend-builder --chown=redash /frontend/client/dist /app/client/dist

compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ x-redash-service: &redash-service
1212
env_file:
1313
- .env
1414
x-redash-environment: &redash-environment
15-
REDASH_HOST: http://localhost:5000
15+
REDASH_HOST: http://localhost:5001
1616
REDASH_LOG_LEVEL: "INFO"
1717
REDASH_REDIS_URL: "redis://redis:6379/0"
1818
REDASH_DATABASE_URL: "postgresql://postgres@postgres/postgres"
@@ -31,7 +31,7 @@ services:
3131
- postgres
3232
- redis
3333
ports:
34-
- "5000:5000"
34+
- "5001:5000"
3535
- "5678:5678"
3636
environment:
3737
<<: *redash-environment

0 commit comments

Comments
 (0)