isaiaslafon commented on issue #39431:
URL: https://github.com/apache/superset/issues/39431#issuecomment-5453495081
We are using superset 6.1 lean image on docker.
Dockerfile:
FROM apache/superset:6.1.0
ARG BUILD_TRANSLATIONS=true
USER root
# Set environment variable for Playwright
ENV PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright-browsers
ENV LD_LIBRARY_PATH=/opt/oracle/instantclient_23_26:$LD_LIBRARY_PATH
# copia archivos personalizados.
COPY ./custom/ /tmp/
# Install packages using uv into the virtual environment
# Install system dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc \
libpq-dev \
libaio1 \
wget \
unzip \
curl \
libnss3 \
libxss1 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libasound2 && \
rm -rf /var/lib/apt/lists/*
# Install Oracle Instant Client
RUN mkdir -p /opt/oracle && \
cd /opt/oracle && \
wget
https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip
&& \
unzip instantclient-basiclite-linuxx64.zip && \
rm instantclient-basiclite-linuxx64.zip && \
echo /opt/oracle/instantclient_* >
/etc/ld.so.conf.d/oracle-instantclient.conf && \
ldconfig
# Install Python packages inside Superset virtualenv
RUN . /app/.venv/bin/activate && \
uv pip install \
psycopg2-binary \
oracledb \
Authlib \
openpyxl \
Pillow \
playwright && \
uv pip install -r /tmp/requirements-local.txt && \
playwright install-deps && \
PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright-browsers playwright
install chromium
# Switch back to the superset user
USER superset
CMD ["/app/docker/entrypoints/run-server.sh"]
How do we fix the issue?
It can be fixed directly on the Dockerfile? or I have to donwload the
project locally, compile and copy the files needed after using dockerfile or cp?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]