File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed 
kubernetes/samples/scripts 
create-weblogic-domain/domain-home-in-image Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -282,10 +282,10 @@ function createFiles {
282282 fi 
283283
284284 #  calculate the internal name to tag the generated image
285-  imageName =" ` basename ${domainHomeImageBuildPath}  |  sed ' s/^[0-9]*-//' ` " 
285+  defaultImageName =" ` basename ${domainHomeImageBuildPath}  |  sed ' s/^[0-9]*-//' ` " 
286286 baseTag=${domainHomeImageBase#*: } 
287287
288-  imageName =${imageName } :${baseTag:- " latest"  } 
288+  defaultImageName =${defaultImageName } :${baseTag:- " latest"  } 
289289
290290 #  Generate the properties file that will be used when creating the weblogic domain
291291 echo  Generating ${domainPropertiesOutput} 
@@ -303,7 +303,7 @@ function createFiles {
303303 sed -i -e " s:%JAVA_OPTIONS%:${javaOptions} :g"   ${domainPropertiesOutput} 
304304 sed -i -e " s:%T3_CHANNEL_PORT%:${t3ChannelPort} :g"   ${domainPropertiesOutput} 
305305 sed -i -e " s:%T3_PUBLIC_ADDRESS%:${t3PublicAddress} :g"   ${domainPropertiesOutput} 
306-  sed -i -e " s|%IMAGE_NAME%|${imageName } |g"   ${domainPropertiesOutput} 
306+  sed -i -e " s|%IMAGE_NAME%|${defaultImageName } |g"   ${domainPropertiesOutput} 
307307
308308 else 
309309
@@ -415,7 +415,7 @@ function createFiles {
415415
416416 #  now we know which image to use, update the domain yaml file
417417 if  [ -z  $image  ];  then 
418-  sed -i -e " s|%WEBLOGIC_IMAGE%|${imageName } |g"   ${dcrOutput} 
418+  sed -i -e " s|%WEBLOGIC_IMAGE%|${defaultImageName } |g"   ${dcrOutput} 
419419 else 
420420 sed -i -e " s|%WEBLOGIC_IMAGE%|${image} |g"   ${dcrOutput} 
421421 fi 
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ domainPVMountPath: /shared
125125#  Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how
126126#  to obtain or create the image.
127127#  See README.md for more help.
128- # domainHomeImageBase:
128+ # domainHomeImageBase: store/oracle/weblogic:12.2.1.3 
129129
130130#  Location of the WebLogic "domain home in image" Docker image sample in the
131131#  `https://github.com/oracle/docker-images.git` project.
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ function initialize {
165165# 
166166function  getDockerSample  {
167167 rm -rf ${scriptDir} /docker-images
168-  git clone https://github.com/mriccell /docker-images.git ${scriptDir} /docker-images
168+  git clone https://github.com/oracle /docker-images.git ${scriptDir} /docker-images
169169}
170170
171171# 
@@ -194,8 +194,10 @@ function createDomainHome {
194194 fi 
195195
196196 sh ${dockerDir} /build.sh
197+ 
198+  #  if the "image" property is set, tag the image as it too
197199 if  [ !  -z  $image  ];  then 
198-  docker tag $imageName   $image 
200+  docker tag $defaultImageName   $image 
199201 fi 
200202
201203 if  [ " $? "   !=  " 0"   ];  then 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments