-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathDockerfile
36 lines (26 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM python:2.7
LABEL maintainer="[email protected]"
ENV TNS_ADMIN=/usr/lib/oracle/18.3/client64 \
ORACLE_HOME=/usr/lib/oracle/18.3/client64 \
PATH=$PATH:/usr/lib/oracle/18.3/client64/bin \
SURE_DATA_CLIENT=/opt/suredataclient
WORKDIR ${SURE_DATA_CLIENT}
ADD . ${SURE_DATA_CLIENT}
SHELL ["/bin/bash", "-c"]
RUN apt-get -qq update && apt-get -y -qq upgrade && \
apt-get -y -qq install alien wget libaio1 gettext git locales && \
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && \
locale-gen && \
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc && \
echo "export LANG=en_US.UTF-8" >> ~/.bashrc && \
echo "export LANGUAGE=en_US.UTF-8" >> ~/.bashrc && \
alien ${SURE_DATA_CLIENT}/Docker/data-client/oracle-instantclient18.3-* && \
rm -f ${SURE_DATA_CLIENT}/Docker/data-client/oracle-instantclient18.3-*.rpm && \
dpkg -i oracle-instantclient*.deb && \
echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient18.3.conf && \
ldconfig
RUN mv ${SURE_DATA_CLIENT}/Docker/data-client/tnsnames.ora /usr/lib/oracle/18.3/client64
RUN pip install cx_Oracle sqlalchemy psycopg2
RUN chmod 755 ${SURE_DATA_CLIENT}/Docker/data-client/fireitup.sh
EXPOSE 8000
ENTRYPOINT [ "./Docker/data-client/fireitup.sh" ]