forked from loivis/docker-sqlplus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 713 Bytes
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
FROM ubuntu:16.04
RUN apt-get -y update \
&& apt-get -y install libaio1 unzip rlwrap \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV VERSION 12.1.0.2.0
COPY instantclient-*-${VERSION}.zip /opt/
WORKDIR /opt/
RUN unzip /opt/instantclient-basic-linux.x64-${VERSION}.zip \
&& unzip /opt/instantclient-sqlplus-linux.x64-${VERSION}.zip \
&& unzip /opt/instantclient-sdk-linux.x64-${VERSION}.zip \
&& unzip /opt/instantclient-jdbc-linux.x64-${VERSION}.zip \
&& rm -v /opt/instantclient-*-${VERSION}.zip \
&& mv -v /opt/instantclient* /opt/instantclient
COPY login.sql /opt/instantclient
RUN mkdir /opt/sql_files
VOLUME /opt/sql_files
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["-V"]