lrbsantos edited a comment on issue #13721:
URL: https://github.com/apache/superset/issues/13721#issuecomment-821750879
Hi @gnoopy
I also had some issues trying to install cx_Oracle in docker vm. My solution
was to extend the image creating a Dockerfile like this:
```
FROM apache/superset
USER root
# Install Oracle Instant Client 18.5 (by LRBS)
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
unzip libaio1 \
&& apt-get autoremove -yqq --purge \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -pv /opt/oracle \
&& chown -R "superset:root" /opt/oracle \
&& cd /opt/oracle \
&& curl -Lf
"https://download.oracle.com/otn_software/linux/instantclient/185000/instantclient-basic-linux.x64-18.5.0.0.0dbru.zip?xd_co_f=<oracle-random-key>"
\
--output oracle-instantclient-18-5.zip \
&& unzip ./oracle-instantclient-18-5.zip \
&& rm -f ./oracle-instantclient-18-5.zip \
&& echo "/opt/oracle/instantclient_18_5" >
/etc/ld.so.conf.d/oracle-instantclient.conf \
&& ldconfig
USER superset
RUN pip install --no-cache-dir -t /app/superset/pythonpath cx-Oracle==8.1.0
```
Then I build a new image from this Dockerfile, run the container and my
Oracle connections were sucessfull.
I hope I'd helped you in something.
Best Regards, Ricardo.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]