forked from oracle/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadditionalBuildCmds.txt
48 lines (38 loc) · 2.06 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
47
48
[package-manager-packages]
hostname
[final-build-commands]
ENV ORACLE_HOME=/u01/oracle \
USER_MEM_ARGS="-Djava.security.egd=file:/dev/./urandom" \
PATH=$PATH:$JAVA_HOME/bin:$ORACLE_HOME/oracle_common/common/bin \
DOMAIN_NAME="${DOMAIN_NAME:-base_domain}" \
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}" \
SOA_PORT="${SOA_PORT:-8001}" \
OIM_PORT="${OIM_PORT:-14000}" \
OIM_SSL_PORT="${OIM_SSL_PORT:-14002}" \
PATH=$PATH:/u01/oracle \
DOMAIN_TYPE="oim" \
PATH=$PATH:/usr/java/default/bin:$ORACLE_HOME/oracle_common/common/bin:/u01/oracle/wlserver/common/bin:/u01/oracle/dockertools \
HEALTH_SCRIPT_FILE=/u01/oracle/dockertools/get_healthcheck_url.sh
USER root
RUN mkdir -p /u01/oracle/dockertools && \
mkdir /usr/java && \
ln -s /u01/jdk /usr/java/latest
RUN cp -rf /u01/oracle/idm/server/ConnectorDefaultDirectory /u01/oracle/idm/server/ConnectorDefaultDirectory_orig && \
rm -rf /u01/oracle/idm/server/ConnectorDefaultDirectory && \
ln -s /u01/oracle/user_projects/domains/ConnectorDefaultDirectory /u01/oracle/idm/server/ConnectorDefaultDirectory
COPY --chown=oracle:root files/container-scripts/ /u01/oracle/dockertools/
RUN chmod a+xr /u01/oracle/dockertools/* && \
chown -R oracle:root /u01/oracle/dockertools && \
chown -R oracle:root /u01/oracle/idm/server/ConnectorDefaultDirectory_orig && \
chown -h oracle:root /u01/oracle/idm/server/ConnectorDefaultDirectory
USER oracle
RUN if $ORACLE_HOME/OPatch/opatch lsinventory -oh $ORACLE_HOME -jre $JAVA_HOME | egrep -q '23855729|24204843|24325050'; then \
echo "Ready End Point already Configured."; \
else \
sed -i 's|true</ready|false</ready|g' /u01/oracle/idm/server/apps/oim.ear/META-INF/weblogic-application.xml; \
fi
HEALTHCHECK --start-period=5m --interval=1m CMD curl -k -s --fail `$HEALTH_SCRIPT_FILE` || exit 1
WORKDIR $ORACLE_HOME
CMD ["/u01/oracle/dockertools/createDomainAndStart.sh"]