You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "ilsaloving (via GitHub)" <gi...@apache.org> on 2024/10/08 15:07:24 UTC

Re: [I] Cannot install mysql client onto 4.1.0rc2 (pkg-config not found) [superset]

ilsaloving commented on issue #30550:
URL: https://github.com/apache/superset/issues/30550#issuecomment-2400115760

   Since the base image is running off Debian 12, I was able to make the following adjustments to my Dockerfile so everything would work without requiring a full compilation environment.  I'm still fiddling with it, but this works.
   
   Note: I also had to install the distro packages for `ldap` and `psycopg2` as well, and _then_ install `psycopg2-binary` via pip or superset wouldn't find it.
   
   
   ```
   FROM apache/superset:4.1.0rc2
   
   USER root
   RUN <<EOF
   	apt-get update
   	apt-get upgrade -y
   	apt-get install -y curl links zip unzip basez python3-mysqldb python3-ldap python3-psycopg2 python3-psycopg2cffi
   	apt-get purge -y --auto-remove
   EOF
   
   COPY superset_config.py superset-init.sh /app/
   
   RUN <<EOF
   	pip --root-user-action install --upgrade pip 
   	pip install  \
   	psycopg2-binary \
   	shillelagh[gsheetsapi] \
   	gunicorn[gevent] \
   	pymssql \
   	elasticsearch-dbapi \
   	elasticsearch-dbapi[opendistro] \
   	trino \
   	trino[sqlalchemy] \
   	playwright \
   	pip-system-certs \
   	Pillow \
   
   EOF
   
   USER superset
   ```


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org