-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed removing header in csv files when loading snowflake
- Loading branch information
Showing
2 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
FROM python:3.8-slim | ||
|
||
# Installing Oracle instant client | ||
# Installing Oracle instant client and support for odbc | ||
WORKDIR /opt/oracle | ||
RUN apt-get update \ | ||
&& apt-get install -y gcc g++ unixodbc unixodbc-dev libaio1 wget unzip git \ | ||
&& wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip \ | ||
&& unzip instantclient-basiclite-linuxx64.zip \ | ||
&& rm -f instantclient-basiclite-linuxx64.zip \ | ||
&& cd /opt/oracle/instantclient* \ | ||
&& rm -f *jdbc* *occi* *mysql* *README *jar uidrvci genezi adrci \ | ||
&& echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf \ | ||
&& ldconfig | ||
&& wget https://download.oracle.com/otn_software/linux/instantclient/215000/instantclient-basic-linux.x64-21.5.0.0.0dbru.zip \ | ||
&& wget https://download.oracle.com/otn_software/linux/instantclient/215000/instantclient-sqlplus-linux.x64-21.5.0.0.0dbru.zip \ | ||
&& unzip instantclient-basic-linux.x64-21.5.0.0.0dbru.zip \ | ||
&& unzip instantclient-sqlplus-linux.x64-21.5.0.0.0dbru.zip \ | ||
&& rm -f instantclient-basic-linux.x64-21.5.0.0.0dbru.zip \ | ||
&& rm -f instantclient-sqlplus-linux.x64-21.5.0.0.0dbru.zip \ | ||
&& cd /opt/oracle/instantclient* \ | ||
&& rm -f *jdbc* *occi* *mysql* *README *jar uidrvci genezi adrci \ | ||
&& echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf \ | ||
&& ldconfig | ||
|
||
WORKDIR / | ||
ENV PATH /opt/oracle/instantclient_21_5:$PATH | ||
|
||
COPY eneel /eneel | ||
COPY example_connections.yml / | ||
COPY example_project.yml / | ||
COPY setup.py / | ||
|
||
# install dependencies | ||
# RUN pip install git+https://github.com/mikaelene/eneel.git | ||
WORKDIR / | ||
COPY eneel /eneel | ||
COPY setup.py / | ||
RUN python setup.py install | ||
|
||
# If you want to install the latest version from git | ||
# RUN pip install git+https://github.com/mikaelene/eneel.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters