Skip to content

Commit 6102f25

Browse files
committed
Use environment variables in createDomain, corrected how-to
1 parent 6053557 commit 6102f25

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

samples/docker-domain/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
# HOW TO BUILD THIS IMAGE
1313
# -----------------------
1414
# Put all downloaded files in the same directory as this Dockerfile
15+
# Build the deployment archive file using the build-archive.sh script.
16+
# $ ./build-archive.sh
17+
#
1518
# Run:
1619
# $ sudo docker build \
1720
# --build-arg WDT_MODEL=simple-topology.yaml \
21+
# --build-arg WDT_ARCHIVE=archive.zip \
1822
# -t 12213-domain-wdt .
1923
#
2024
# Pull base image
@@ -67,9 +71,9 @@ RUN chmod +xw /u01/oracle/*.sh && \
6771
if [ -n "$WDT_MODEL" ]; then MODEL_OPT="-model_file /u01/$WDT_MODEL"; fi && \
6872
if [ -n "$WDT_ARCHIVE" ]; then ARCHIVE_OPT="-archive_file /u01/$WDT_ARCHIVE"; fi && \
6973
/u01/weblogic-deploy/bin/createDomain.sh \
70-
-oracle_home /u01/oracle \
74+
-oracle_home $ORACLE_HOME \
7175
-java_home ${JAVA_HOME} \
72-
-domain_parent /u01/oracle/user_projects/domains \
76+
-domain_parent $PRE_DOMAIN_HOME \
7377
-domain_type WLS \
7478
$MODEL_OPT \
7579
$ARCHIVE_OPT && \

0 commit comments

Comments
 (0)