forked from transferwise/pipelinewise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (17 loc) · 849 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.7-slim-buster
RUN apt-get -qq update && apt-get -qqy install \
apt-utils \
alien \
libaio1 \
mongo-tools \
mbuffer \
wget \
&& pip install --upgrade pip
ARG connectors=all
COPY . /app
# Install Oracle Instant Client for tap-oracle if its in the connectors list
RUN bash -c "if grep -q \"tap-oracle\" <<< \"$connectors\"; then wget https://download.oracle.com/otn_software/linux/instantclient/193000/oracle-instantclient19.3-basiclite-19.3.0.0.0-1.x86_64.rpm -O /app/oracle-instantclient.rpm && alien -i /app/oracle-instantclient.rpm --scripts && rm -rf /app/oracle-instantclient.rpm ; fi"
RUN cd /app \
&& ./install.sh --connectors=$connectors --acceptlicenses --nousage --notestextras \
&& ln -s /root/.pipelinewise /app/.pipelinewise
ENTRYPOINT ["/app/entrypoint.sh"]