forked from HydrologicEngineeringCenter/cwms-database
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (35 loc) · 1.42 KB
/
Dockerfile
File metadata and controls
43 lines (35 loc) · 1.42 KB
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
37
38
39
40
41
42
43
FROM ubuntu:22.04
LABEL MAINTAINER="CWMS DB Team"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install wget git \
zip unzip \
openjdk-8-jdk \
libaio1 python2 python3 \
ant
RUN ln -s /usr/lib/jvm-1.8.0.openjdk-amd64 /usr/lib/jvm/java
RUN mkdir /opt/oracle
WORKDIR /opt/oracle
RUN wget https://download.oracle.com/otn_software/linux/instantclient/19600/instantclient-basiclite-linux.x64-19.6.0.0.0dbru.zip && \
wget https://download.oracle.com/otn_software/linux/instantclient/19600/instantclient-tools-linux.x64-19.6.0.0.0dbru.zip && \
wget https://download.oracle.com/otn_software/linux/instantclient/19600/instantclient-sqlplus-linux.x64-19.6.0.0.0dbru.zip
RUN unzip instantclient-basiclite-linux.x64-19.6.0.0.0dbru.zip && \
unzip instantclient-tools-linux.x64-19.6.0.0.0dbru.zip && \
unzip instantclient-sqlplus-linux.x64-19.6.0.0.0dbru.zip && \
rm *.zip
RUN mkdir /after.install.d
COPY . /cwmsdb
WORKDIR /cwmsdb
ARG branch
RUN if [ "${branch}" != "" ]; then sed -i "s/99.99.99-SNAPSHOT/${branch}/" pom.xml; fi
WORKDIR /cwmsdb/schema
ENV PATH=$PATH:/opt/oracle/instantclient_19_6
ENV LD_LIBRARY_PATH=/opt/oracle/instantclient_19_6
ENV OFFICE_ID=HQ
ENV OFFICE_EROC=Q0
ENV INSTALLONCE=0
ENV QUIET=0
ENV TEST_ACCOUNT=-testaccount
RUN chmod +x ./docker/install.sh
CMD ["/cwmsdb/schema/docker/install.sh"]