Skip to content

Commit fee8195

Browse files
doxiaomarkxnelson
authored andcommitted
Add customization of base image in domain-home-in-image sample (#622)
* Customize base image used to build domain-home-in-image sample Signed-off-by: doxiao <[email protected]> * Add a property into inputs file Signed-off-by: doxiao <[email protected]> * Update RREADME Signed-off-by: doxiao <[email protected]> * Have an explicit/hard-coded default Signed-off-by: doxiao <[email protected]>
1 parent c9f2b18 commit fee8195

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ The following parameters can be provided in the inputs file.
6868
| `adminPort` | Port number for the Administration Server inside the Kubernetes cluster. | `7001` |
6969
| `adminNodePort` | Port number of the Administration Server outside the Kubernetes cluster. | `30701` |
7070
| `adminServerName` | Name of the Administration Server. | `admin-server` |
71+
| `baseImage` | The image that is used to build the domain-home-in-image Docker image. If not specified, use the built-in base image `oracle/weblogic:12.2.1.3-developer`. | `oracle/weblogic:12.2.1.3-developer` |
7172
| `clusterName` | Name of the WebLogic cluster instance to generate for the domain. | `cluster-1` |
7273
| `clusterType` | Type of the WebLogic Cluster. Legal values are `CONFIGURED` or `DYNAMIC`. | `DYNAMIC` |
7374
| `configuredManagedServerCount` | Number of Managed Server instances to generate for the domain. | `2` |

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/create-domain-inputs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@ namespace: default
7373
#Java Option for Weblogic Server
7474
javaOptions: -Dweblogic.StdoutDebugEnabled=false
7575

76+
#Base image used to build the domain home in image Docker image
77+
#If not specified, use the built-in base image oracle/weblogic:12.2.1.3-developer
78+
baseImage: oracle/weblogic:12.2.1.3-developer
79+

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/create-domain.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ function createDomainHome {
311311
sed -i -e "s|myuser|${username}|g" properties/docker_build/domain_security.properties
312312
sed -i -e "s|mypassword1|${password}|g" properties/docker_build/domain_security.properties
313313

314+
if [ ! -z $baseImage ]; then
315+
sed -i -e "s|oracle/weblogic:12.2.1.3-developer|${baseImage}|g" Dockerfile
316+
fi
317+
314318
./build.sh
315319

316320
if [ "$?" != "0" ]; then

0 commit comments

Comments
 (0)