forked from Dani3lSun/docker-db-apex-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·44 lines (36 loc) · 1.14 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
FROM oraclelinux:7.6
MAINTAINER Daniel Hochleitner <[email protected]>
# environment variables
ENV INSTALL_APEX=true \
INSTALL_SQLCL=true \
INSTALL_LOGGER=true \
INSTALL_OOSUTILS=true \
INSTALL_AOP=true \
INSTALL_SWAGGER=true \
DBCA_TOTAL_MEMORY=2048 \
ORACLE_SID=orcl \
SERVICE_NAME=orcl \
DB_INSTALL_VERSION=18 \
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_INVENTORY=/u01/app/oraInventory \
PASS=oracle \
ORDS_HOME=/u01/ords \
JAVA_HOME=/opt/java \
TOMCAT_HOME=/opt/tomcat \
APEX_PASS=OrclAPEX1999! \
APEX_ADDITIONAL_LANG= \
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"]