File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed
kubernetes/samples/scripts Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -281,12 +281,6 @@ function createFiles {
281
281
domainHomeImageBuildPath=" ./docker-images/OracleWebLogic/samples/12213-domain-home-in-image"
282
282
fi
283
283
284
- # calculate the internal name to tag the generated image
285
- defaultImageName=" ` basename ${domainHomeImageBuildPath} | sed ' s/^[0-9]*-//' ` "
286
- baseTag=${domainHomeImageBase#*: }
287
-
288
- defaultImageName=${defaultImageName} :${baseTag:- " latest" }
289
-
290
284
# Generate the properties file that will be used when creating the weblogic domain
291
285
echo Generating ${domainPropertiesOutput}
292
286
@@ -303,8 +297,16 @@ function createFiles {
303
297
sed -i -e " s:%JAVA_OPTIONS%:${javaOptions} :g" ${domainPropertiesOutput}
304
298
sed -i -e " s:%T3_CHANNEL_PORT%:${t3ChannelPort} :g" ${domainPropertiesOutput}
305
299
sed -i -e " s:%T3_PUBLIC_ADDRESS%:${t3PublicAddress} :g" ${domainPropertiesOutput}
306
- sed -i -e " s|%IMAGE_NAME%|${defaultImageName} |g" ${domainPropertiesOutput}
307
300
301
+ if [ -z " ${image} " ]; then
302
+ # calculate the internal name to tag the generated image
303
+ defaultImageName=" ` basename ${domainHomeImageBuildPath} | sed ' s/^[0-9]*-//' ` "
304
+ baseTag=${domainHomeImageBase#*: }
305
+ defaultImageName=${defaultImageName} :${baseTag:- " latest" }
306
+ sed -i -e " s|%IMAGE_NAME%|${defaultImageName} |g" ${domainPropertiesOutput}
307
+ else
308
+ sed -i -e " s|%IMAGE_NAME%|${image} |g" ${domainPropertiesOutput}
309
+ fi
308
310
else
309
311
310
312
createJobOutput=" ${domainOutputDir} /create-domain-job.yaml"
Original file line number Diff line number Diff line change @@ -196,11 +196,6 @@ function createDomainHome {
196
196
197
197
sh ${dockerDir} /build.sh
198
198
199
- # if the "image" property is set, tag the image with it too
200
- if [ ! -z $image ]; then
201
- docker tag $defaultImageName $image
202
- fi
203
-
204
199
if [ " $? " != " 0" ]; then
205
200
fail " Create domain ${domainName} failed."
206
201
fi
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ Note that the example results below use the `default` Kubernetes namespace. If y
114
114
115
115
The content of the generated ` domain.yaml ` :
116
116
117
+ ```
117
118
# Copyright 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
118
119
119
120
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
You can’t perform that action at this time.
0 commit comments