Skip to content

Commit b72e964

Browse files
authored
Add Healthcheck to WLS images and add 14.1.1.0 JRE 8 installers (#1625)
* Add HEALTHCHECK to Admin and Managed server containers
1 parent 25b12b9 commit b72e964

38 files changed

+672
-160
lines changed

OracleFMWInfrastructure/dockerfiles/12.2.1.3/Dockerfile

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Copyright (c) 2014-2018 Oracle and/or its affiliates. All rights reserved.
1+
#Copyright (c) 2014, 2020, Oracle and/or its affiliates.
22
#
3-
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
#
55
# ORACLE DOCKERFILES PROJECT
66
# --------------------------
@@ -21,10 +21,14 @@
2121
# ----------------------------------------------------------------------------------------------
2222
FROM oracle/serverjre:8 as builder
2323

24-
# Maintainer
25-
# ----------
26-
MAINTAINER Monica Riccelli <[email protected]>
27-
24+
# Labels
25+
# ------
26+
LABEL "provider"="Oracle" \
27+
"maintainer"="Monica Riccelli <[email protected]>" \
28+
"issues"="https://github.com/oracle/docker-images/issues" \
29+
"port.admin.listen"="7001" \
30+
"port.administration"="9002" \
31+
"port.managed.server"="8001"
2832

2933
# Common environment variables required for this build
3034
# ----------------------------------------------------
@@ -60,6 +64,7 @@ FROM oracle/serverjre:8
6064
ENV ORACLE_HOME=/u01/oracle \
6165
VOLUME_DIR=/u01/oracle/user_projects \
6266
SCRIPT_FILE=/u01/oracle/container-scripts/* \
67+
HEALTH_SCRIPT_FILE=/u01/oracle/container-scripts/get_healthcheck_url.sh \
6368
DOMAIN_NAME="${DOMAIN_NAME:-infra_domain}" \
6469
ADMIN_LISTEN_PORT="${ADMIN_LISTEN_PORT:-7001}" \
6570
ADMIN_NAME="${ADMIN_NAME:-AdminServer}" \
@@ -68,6 +73,7 @@ ENV ORACLE_HOME=/u01/oracle \
6873
ADMINISTRATION_PORT="${ADMINISTRATION_PORT:-9002}" \
6974
MANAGEDSERVER_PORT="${MANAGEDSERVER_PORT:-8001}" \
7075
MANAGED_NAME="${MANAGED_NAME:-infraServer1}" \
76+
MANAGED_SERVER_CONTAINER="${MANAGED_SERVER_CONTAINER:-false}" \
7177
RCUPREFIX="${RCUPREFIX:-INFRA01}" \
7278
PRODUCTION_MODE="${PRODUCTION_MODE:-prod}" \
7379
CONNECTION_STRING=${CONNECTION_STRING:-InfraDB:1521/InfraPDB1.us.oracle.com} \
@@ -91,5 +97,6 @@ COPY --from=builder --chown=oracle:oracle /u01 /u01
9197
RUN chmod +xr $SCRIPT_FILE
9298

9399
USER oracle
100+
HEALTHCHECK --start-period=4m --interval=1m CMD curl -k -s --fail `$HEALTH_SCRIPT_FILE` || exit 1
94101
WORKDIR ${ORACLE_HOME}
95102
CMD ["/u01/oracle/container-scripts/createOrStartInfraDomain.sh"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
#
3+
#Copyright (c) 2020, Oracle and/or its affiliates.
4+
#
5+
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
6+
7+
if [ "$MANAGED_SERVER_CONTAINER" = "true" ] ; then
8+
echo "http://{localhost:$MANAGEDSERVER_PORT}/weblogic/ready" ;
9+
elif [ "$ADMINISTRATION_PORT_ENABLED" = "true" ] ; then
10+
echo "https://{localhost:$ADMINISTRATION_PORT}/weblogic/ready" ;
11+
else
12+
echo "http://{localhost:$ADMIN_LISTEN_PORT}/weblogic/ready" ;
13+
fi
14+

OracleFMWInfrastructure/dockerfiles/12.2.1.3/properties/domain.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ADMINISTRATION_PORT_ENABLED=true
66
ADMINISTRATION_PORT=9002
77
MANAGEDSERVER_PORT=8001
88
MANAGED_NAME=infraServer1
9-
RCUPREFIX=INFRA31
9+
RCUPREFIX=INFRA10
1010
PRODUCTION_MODE=dev
1111
CONNECTION_STRING=InfraDB:1521/InfraPDB1.us.oracle.com
1212
DOMAIN_HOST_VOLUME=/home/username/domain_home

OracleFMWInfrastructure/dockerfiles/12.2.1.3/run_managed_server.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#! /bin/bash
22
#
3-
#Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
3+
#Copyright (c) 2020, Oracle and/or its affiliates.
44
#
5-
#Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
5+
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
66
#
77
# Pass in the managed server name to run and the mapped port
88

@@ -31,6 +31,7 @@ managed_name() {
3131

3232
admin_host
3333
managed_name
34+
ENV_ARG="${ENV_ARG} -e MANAGED_NAME=$managedname -e MANAGED_SERVER_CONTAINER=true"
3435

3536
echo "docker run -d -p 9802:8002 --network=InfraNET -v ${scriptDir}/properties:/u01/oracle/properties ${ENV_ARG} --volumes-from ${adminhost} --name ${managedname} oracle/fmw-infrastructure:12.2.1.3 startManagedServer.sh"
3637

OracleFMWInfrastructure/dockerfiles/12.2.1.4/Dockerfile

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Copyright (c) 2014-2019 Oracle and/or its affiliates. All rights reserved.
1+
#Copyright (c) 2014, 2020, Oracle and/or its affiliates.
22
#
33
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
#
@@ -21,10 +21,14 @@
2121
# ----------------------------------------------------------------------------------------------
2222
FROM oracle/serverjre:8 as builder
2323

24-
# Maintainer
25-
# ----------
26-
MAINTAINER Monica Riccelli <[email protected]>
27-
24+
# Labels
25+
# ------
26+
LABEL "provider"="Oracle" \
27+
"maintainer"="Monica Riccelli <[email protected]>" \
28+
"issues"="https://github.com/oracle/docker-images/issues" \
29+
"port.admin.listen"="7001" \
30+
"port.administration"="9002" \
31+
"port.managed.server"="8001"
2832

2933
# Common environment variables required for this build
3034
# ----------------------------------------------------
@@ -61,6 +65,7 @@ FROM oracle/serverjre:8
6165
ENV ORACLE_HOME=/u01/oracle \
6266
VOLUME_DIR=/u01/oracle/user_projects \
6367
SCRIPT_FILE=/u01/oracle/container-scripts/* \
68+
HEALTH_SCRIPT_FILE=/u01/oracle/container-scripts/get_healthcheck_url.sh \
6469
DOMAIN_NAME="${DOMAIN_NAME:-infra_domain}" \
6570
ADMIN_LISTEN_PORT="${ADMIN_LISTEN_PORT:-7001}" \
6671
ADMIN_NAME="${ADMIN_NAME:-AdminServer}" \
@@ -69,6 +74,7 @@ ENV ORACLE_HOME=/u01/oracle \
6974
ADMINISTRATION_PORT="${ADMINISTRATION_PORT:-9002}" \
7075
MANAGEDSERVER_PORT="${MANAGEDSERVER_PORT:-8001}" \
7176
MANAGED_NAME="${MANAGED_NAME:-infraServer1}" \
77+
MANAGED_SERVER_CONTAINER="${MANAGED_SERVER_CONTAINER:-false}" \
7278
RCUPREFIX="${RCUPREFIX:-INFRA01}" \
7379
PRODUCTION_MODE="${PRODUCTION_MODE:-prod}" \
7480
CONNECTION_STRING=${CONNECTION_STRING:-InfraDB:1521/InfraPDB1.us.oracle.com} \
@@ -92,5 +98,6 @@ COPY --from=builder --chown=oracle:oracle /u01 /u01
9298
RUN chmod +xr $SCRIPT_FILE
9399

94100
USER oracle
101+
HEALTHCHECK --start-period=4m --interval=1m CMD curl -k -s --fail `$HEALTH_SCRIPT_FILE` || exit 1
95102
WORKDIR ${ORACLE_HOME}
96103
CMD ["/u01/oracle/container-scripts/createOrStartInfraDomain.sh"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
#
3+
#Copyright (c) 2020, Oracle and/or its affiliates.
4+
#
5+
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
6+
7+
if [ "$MANAGED_SERVER_CONTAINER" = "true" ] ; then
8+
echo "http://{localhost:$MANAGEDSERVER_PORT}/weblogic/ready" ;
9+
elif [ "$ADMINISTRATION_PORT_ENABLED" = "true" ] ; then
10+
echo "https://{localhost:$ADMINISTRATION_PORT}/weblogic/ready" ;
11+
else
12+
echo "http://{localhost:$ADMIN_LISTEN_PORT}/weblogic/ready" ;
13+
fi
14+

OracleFMWInfrastructure/dockerfiles/12.2.1.4/properties/domain.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ADMINISTRATION_PORT_ENABLED=true
66
ADMINISTRATION_PORT=9002
77
MANAGEDSERVER_PORT=8001
88
MANAGED_NAME=infraServer1
9-
RCUPREFIX=INFRA31
9+
RCUPREFIX=INFRA10
1010
PRODUCTION_MODE=dev
1111
CONNECTION_STRING=InfraDB:1521/InfraPDB1.us.oracle.com
1212
DOMAIN_HOST_VOLUME=/home/username/domain_home

OracleFMWInfrastructure/dockerfiles/12.2.1.4/run_admin_server.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ admin_host() {
4040
admin_host
4141
domain_host_volume
4242

43-
echo " docker run -d -p 9001:7001 -p 9002:9002 --name ${adminhost} --network=InfraNET -v ${scriptDir}/properties:/u01/oracle/properties -v ${domainhostvol}:/u01/oracle/user_projects/domains ${ENV_ARG} oracle/fmw-infrastructure:12.2.1.3"
43+
echo " docker run -d -p 9001:7001 -p 9002:9002 --name ${adminhost} --network=InfraNET -v ${scriptDir}/properties:/u01/oracle/properties -v ${domainhostvol}:/u01/oracle/user_projects/domains ${ENV_ARG} oracle/fmw-infrastructure:12.2.1.4"
4444

45-
docker run -d -p 9001:7001 -p 9002:9002 --name ${adminhost} --network=InfraNET -v ${scriptDir}/properties:/u01/oracle/properties -v ${domainhostvol}:/u01/oracle/user_projects/domains ${ENV_ARG} oracle/fmw-infrastructure:12.2.1.3
45+
docker run -d -p 9001:7001 -p 9002:9002 --name ${adminhost} --network=InfraNET -v ${scriptDir}/properties:/u01/oracle/properties -v ${domainhostvol}:/u01/oracle/user_projects/domains ${ENV_ARG} oracle/fmw-infrastructure:12.2.1.4
4646

OracleFMWInfrastructure/dockerfiles/12.2.1.4/run_managed_server.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22
#
3-
#Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
3+
#Copyright (c) 2020, Oracle and/or its affiliates.
44
#
55
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
66
#
@@ -31,6 +31,7 @@ managed_name() {
3131

3232
admin_host
3333
managed_name
34+
ENV_ARG="${ENV_ARG} -e MANAGED_NAME=$managedname -e MANAGED_SERVER_CONTAINER=true"
3435

3536
echo "docker run -d -p 9802:8002 --network=InfraNET -v ${scriptDir}/properties:/u01/oracle/properties ${ENV_ARG} --volumes-from ${adminhost} --name ${managedname} oracle/fmw-infrastructure:12.2.1.3 startManagedServer.sh"
3637

OracleFMWInfrastructure/dockerfiles/buildDockerImage.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
# Description: script to build a Docker image for FMW Infrastructure
66
#
7-
#Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
7+
#Copyright (c) 2019, 2020, Oracle and/or its affiliates.
88
#
99
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
1010

@@ -23,7 +23,7 @@ Parameters:
2323
2424
LICENSE UPL 1.0
2525
26-
Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
26+
Copyright (c) 2019, 2020, Oracle and/or its affiliates.
2727
2828
EOF
2929
exit 0

OracleWebLogic/dockerfiles/12.2.1.3/Dockerfile.developer

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Copyright (c) 2014-2019 Oracle and/or its affiliates. All rights reserved.
1+
#Copyright (c) 2014, 2020, Oracle and/or its affiliates.
22
#
33
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
#
@@ -29,9 +29,14 @@
2929
# ----------------------------------------------------------------------------------------------
3030
FROM oracle/serverjre:8 as builder
3131

32-
# Maintainer
33-
# ----------
34-
MAINTAINER Monica Riccelli <[email protected]>
32+
# Labels
33+
# ------
34+
LABEL "provider"="Oracle" \
35+
"maintainer"="Monica Riccelli <[email protected]>" \
36+
"issues"="https://github.com/oracle/docker-images/issues" \
37+
"port.admin.listen"="7001" \
38+
"port.administration"="9002"
39+
3540

3641
# Common environment variables required for this build (do NOT change)
3742
# --------------------------------------------------------------------
@@ -70,6 +75,7 @@ FROM oracle/serverjre:8
7075
ENV ORACLE_HOME=/u01/oracle \
7176
USER_MEM_ARGS="-Djava.security.egd=file:/dev/./urandom" \
7277
SCRIPT_FILE=/u01/oracle/createAndStartEmptyDomain.sh \
78+
HEALTH_SCRIPT_FILE=/u01/oracle/get_healthcheck_url.sh \
7379
PATH=$PATH:${JAVA_HOME}/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin
7480

7581
# Domain and Server environment variables
@@ -80,7 +86,7 @@ ENV DOMAIN_NAME="${DOMAIN_NAME:-base_domain}" \
8086
DEBUG_FLAG=true \
8187
PRODUCTION_MODE=dev \
8288
ADMINISTRATION_PORT_ENABLED="${ADMINISTRATION_PORT_ENABLED:-true}" \
83-
ADMINISTRATION_PORT="${ADMINISTRATION_PORT:-9002}"
89+
ADMINISTRATION_PORT="${ADMINISTRATION_PORT:-9002}"
8490

8591
# Setup filesystem and oracle user
8692
# Adjust file permissions, go to /u01 as user 'oracle' to proceed with WLS installation
@@ -94,13 +100,14 @@ COPY --from=builder --chown=oracle:oracle /u01 /u01
94100

95101
# Copy scripts
96102
#-------------
97-
COPY container-scripts/createAndStartEmptyDomain.sh container-scripts/create-wls-domain.py /u01/oracle/
103+
COPY container-scripts/createAndStartEmptyDomain.sh container-scripts/create-wls-domain.py container-scripts/get_healthcheck_url.sh /u01/oracle/
98104

99-
RUN chmod +xr $SCRIPT_FILE && \
100-
chown oracle:oracle $SCRIPT_FILE /u01/oracle/create-wls-domain.py
105+
RUN chmod +xr $SCRIPT_FILE $HEALTH_SCRIPT_FILE && \
106+
chown oracle:oracle $SCRIPT_FILE /u01/oracle/create-wls-domain.py $HEALTH_SCRIPT_FILE
101107

102108
USER oracle
103109

110+
HEALTHCHECK --start-period=10s --timeout=30s --retries=3 CMD curl -k -s --fail `$HEALTH_SCRIPT_FILE` || exit 1
104111
WORKDIR ${ORACLE_HOME}
105112

106113
# Define default command to start script.

OracleWebLogic/dockerfiles/12.2.1.3/Dockerfile.generic

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Copyright (c) 2014-2019 Oracle and/or its affiliates. All rights reserved.
1+
#Copyright (c) 2014, 2020, Oracle and/or its affiliates.
22
#
33
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
#
@@ -25,13 +25,16 @@
2525
# The resulting image of this Dockerfile contains a WLS Empty Domain.
2626
#
2727
# Extend base JRE image
28-
# You must build the image by using the Dockerfile in GitHub project `../../../OracleJava/java8`
2928
# ----------------------------------------------------------------------------------------------
3029
FROM oracle/serverjre:8 as builder
3130

32-
# Maintainer
33-
# ----------
34-
MAINTAINER Monica Riccelli <[email protected]>
31+
# Labels
32+
# ------
33+
LABEL "provider"="Oracle" \
34+
"maintainer"="Monica Riccelli <[email protected]>" \
35+
"issues"="https://github.com/oracle/docker-images/issues" \
36+
"port.admin.listen"="7001" \
37+
"port.administration"="9002"
3538

3639
# Common environment variables required for this build (do NOT change)
3740
# --------------------------------------------------------------------
@@ -71,6 +74,7 @@ FROM oracle/serverjre:8
7174
ENV ORACLE_HOME=/u01/oracle \
7275
USER_MEM_ARGS="-Djava.security.egd=file:/dev/./urandom" \
7376
SCRIPT_FILE=/u01/oracle/createAndStartEmptyDomain.sh \
77+
HEALTH_SCRIPT_FILE=/u01/oracle/get_healthcheck_url.sh \
7478
PATH=$PATH:${JAVA_HOME}/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin
7579

7680
# Domain and Server environment variables
@@ -93,13 +97,14 @@ COPY --from=builder --chown=oracle:oracle /u01 /u01
9397

9498
# Copy scripts
9599
#-------------
96-
COPY container-scripts/createAndStartEmptyDomain.sh container-scripts/create-wls-domain.py /u01/oracle/
100+
COPY container-scripts/createAndStartEmptyDomain.sh container-scripts/create-wls-domain.py container-scripts/get_healthcheck_url.sh /u01/oracle/
97101

98-
RUN chmod +xr $SCRIPT_FILE && \
99-
chown oracle:oracle $SCRIPT_FILE /u01/oracle/create-wls-domain.py
102+
RUN chmod +xr $SCRIPT_FILE $HEALTH_SCRIPT_FILE && \
103+
chown oracle:oracle $SCRIPT_FILE /u01/oracle/create-wls-domain.py $HEALTH_SCRIPT_FILE
100104

101105
USER oracle
102106

107+
HEALTHCHECK --start-period=10s --timeout=30s --retries=3 CMD curl -k -s --fail `$HEALTH_SCRIPT_FILE` || exit 1
103108
WORKDIR ${ORACLE_HOME}
104109

105110
# Define default command to start script.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
#
3+
#Copyright (c) 2020, Oracle and/or its affiliates.
4+
#
5+
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
6+
7+
if [ "$ADMINISTRATION_PORT_ENABLED" = "true" ] ; then
8+
echo "https://{localhost:$ADMINISTRATION_PORT}/weblogic/ready" ;
9+
else
10+
echo "http://{localhost:$ADMIN_LISTEN_PORT}/weblogic/ready" ;
11+
fi
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Download WebLogic Server Generic Installer 12.2.1.4
2+
#
3+
# - http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.html
4+
#
5+
4198256da12e06841611d9c1a1ab85eb fmw_12.2.1.4.0_wls_Disk1_1of1.zip
6+

OracleWebLogic/dockerfiles/12.2.1.4/Dockerfile.developer

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Copyright (c) 2014-2019 Oracle and/or its affiliates. All rights reserved.
1+
#Copyright (c) 2014, 2020, Oracle and/or its affiliates.
22
#
33
#Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
#
@@ -29,9 +29,13 @@
2929
# ----------------------------------------------------------------------------------------------
3030
FROM oracle/serverjre:8 as builder
3131

32-
# Maintainer
33-
# ----------
34-
MAINTAINER Monica Riccelli <[email protected]>
32+
# Labels
33+
# ------
34+
LABEL "provider"="Oracle" \
35+
"maintainer"="Monica Riccelli <[email protected]>" \
36+
"issues"="https://github.com/oracle/docker-images/issues" \
37+
"port.admin.listen"="7001" \
38+
"port.administration"="9002"
3539

3640
# Common environment variables required for this build (do NOT change)
3741
# --------------------------------------------------------------------
@@ -70,6 +74,7 @@ FROM oracle/serverjre:8
7074
ENV ORACLE_HOME=/u01/oracle \
7175
USER_MEM_ARGS="-Djava.security.egd=file:/dev/./urandom" \
7276
SCRIPT_FILE=/u01/oracle/createAndStartEmptyDomain.sh \
77+
HEALTH_SCRIPT_FILE=/u01/oracle/get_healthcheck_url.sh \
7378
PATH=$PATH:${JAVA_HOME}/bin:/u01/oracle/oracle_common/common/bin:/u01/oracle/wlserver/common/bin
7479

7580
# Domain and Server environment variables
@@ -80,7 +85,7 @@ ENV DOMAIN_NAME="${DOMAIN_NAME:-base_domain}" \
8085
DEBUG_FLAG=true \
8186
PRODUCTION_MODE=dev \
8287
ADMINISTRATION_PORT_ENABLED="${ADMINISTRATION_PORT_ENABLED:-true}" \
83-
ADMINISTRATION_PORT="${ADMINISTRATION_PORT:-9002}"
88+
ADMINISTRATION_PORT="${ADMINISTRATION_PORT:-9002}"
8489

8590
# Setup filesystem and oracle user
8691
# Adjust file permissions, go to /u01 as user 'oracle' to proceed with WLS installation
@@ -94,13 +99,14 @@ COPY --from=builder --chown=oracle:oracle /u01 /u01
9499

95100
# Copy scripts
96101
#-------------
97-
COPY container-scripts/createAndStartEmptyDomain.sh container-scripts/create-wls-domain.py /u01/oracle/
102+
COPY container-scripts/createAndStartEmptyDomain.sh container-scripts/create-wls-domain.py container-scripts/get_healthcheck_url.sh /u01/oracle/
98103

99-
RUN chmod +xr $SCRIPT_FILE && \
100-
chown oracle:oracle $SCRIPT_FILE /u01/oracle/create-wls-domain.py
104+
RUN chmod +xr $SCRIPT_FILE $HEALTH_SCRIPT_FILE && \
105+
chown oracle:oracle $SCRIPT_FILE /u01/oracle/create-wls-domain.py $HEALTH_SCRIPT_FILE
101106

102107
USER oracle
103108

109+
HEALTHCHECK --start-period=10s --timeout=30s --retries=3 CMD curl -k -s --fail `$HEALTH_SCRIPT_FILE` || exit 1
104110
WORKDIR ${ORACLE_HOME}
105111

106112
# Define default command to start script.

0 commit comments

Comments
 (0)