forked from oracle/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
additionalBuildCmds.txt
46 lines (37 loc) · 1.73 KB
/
additionalBuildCmds.txt
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
[before-jdk-install]
# Instructions/Commands to be executed Before JDK install
[after-jdk-install]
# Instructions/Commands to be executed After JDK install
[before-fmw-install]
# Instructions/Commands to be executed Before FMW install
[after-fmw-install]
# Instructions/Commands to be executed After FMW install
[final-build-commands]
ENV BASE_DIR=/u01 \
ORACLE_HOME=/u01/oracle \
SCRIPT_DIR=/u01/oracle/container-scripts \
PROPS_DIR=/u01/oracle/properties \
VOLUME_DIR=/u01/oracle/user_projects \
DOMAIN_NAME="${DOMAIN_NAME:-base_domain}" \
ADMIN_USER="${ADMIN_USER:-}" \
ADMIN_PASS="${ADMIN_PASS:-}" \
DOMAIN_ROOT="${DOMAIN_ROOT:-/u01/oracle/user_projects/domains}" \
DOMAIN_HOME="${DOMAIN_ROOT:-/u01/oracle/user_projects/domains}"/"${DOMAIN_NAME:-base_domain}" \
ADMIN_PORT="${ADMIN_PORT:-7001}" \
ADMIN_SSL_PORT="${ADMIN_SSL_PORT:-7002}" \
DOMAIN_TYPE="oudsm" \
USER_MEM_ARGS=${USER_MEM_ARGS:-"-Djava.security.egd=file:/dev/./urandom"} \
JAVA_OPTIONS="${JAVA_OPTIONS} -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true" \
PATH=$PATH:/usr/java/default/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle/container-scripts
USER root
RUN mkdir -p ${VOLUME_DIR} && \
chown -R oracle:oracle ${VOLUME_DIR} && chmod -R 770 ${VOLUME_DIR} && \
mkdir -p ${SCRIPT_DIR} && chown oracle:oracle ${SCRIPT_DIR} && \
mkdir -p ${PROPS_DIR} && chown oracle:oracle ${PROPS_DIR} && \
yum install -y hostname && \
rm -rf /var/cache/yum
COPY --chown=oracle:oracle files/container-scripts/ ${SCRIPT_DIR}/
RUN chmod a+xr ${SCRIPT_DIR}/* && \
chown -R oracle:oracle ${SCRIPT_DIR}
USER oracle
ENTRYPOINT ["sh", "-c", "${SCRIPT_DIR}/createDomainAndStart.sh"]