-
Notifications
You must be signed in to change notification settings - Fork 81
/
Dockerfile
executable file
·49 lines (41 loc) · 1.31 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
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM oraclelinux:7.9
MAINTAINER Daniel Hochleitner <dhochleitner@posteo.de>
# environment variables
ENV INSTALL_APEX=true \
INSTALL_SQLCL=true \
INSTALL_SQLDEVWEB=true \
INSTALL_LOGGER=true \
INSTALL_OOSUTILS=true \
INSTALL_AOP=true \
INSTALL_AME=true \
INSTALL_SWAGGER=true \
INSTALL_CA_CERTS_WALLET=true \
DBCA_TOTAL_MEMORY=2048 \
ORACLE_SID=orcl \
SERVICE_NAME=orcl \
DB_INSTALL_VERSION=19 \
ORACLE_BASE=/u01/app/oracle \
ORACLE_HOME12=/u01/app/oracle/product/12.2.0.1/dbhome \
ORACLE_HOME18=/u01/app/oracle/product/18.0.0/dbhome \
ORACLE_HOME19=/u01/app/oracle/product/19.0.0/dbhome \
ORACLE_INVENTORY=/u01/app/oraInventory \
PASS=oracle \
ORDS_HOME=/u01/ords \
JAVA_HOME=/opt/java \
TOMCAT_HOME=/opt/tomcat \
APEX_PASS=OrclAPEX1999! \
APEX_ADDITIONAL_LANG= \
APEX_PATCH_SET_BUNDLE_FILE= \
TIME_ZONE=UTC
# copy all scripts
ADD scripts /scripts/
# copy all files
ADD files /files/
# image setup via shell script to reduce layers and optimize final disk usage
RUN /scripts/install_main.sh
# ssh, database and apex port
EXPOSE 22 1521 8080
# use ${ORACLE_BASE} without product subdirectory as data volume
VOLUME ["${ORACLE_BASE}"]
# entrypoint for database creation, startup and graceful shutdown
ENTRYPOINT ["/scripts/entrypoint.sh"]