File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -88,14 +88,12 @@ function validateDomainSecret {
88
88
89
89
# Verify the secret contains a username
90
90
SECRET=` kubectl get secret ${weblogicCredentialsSecretName} -n ${namespace} -o jsonpath=' {.data}' | grep username: | wc | awk ' { print $1; }' `
91
- USERNAME=` kubectl get secret ${weblogicCredentialsSecretName} -n ${namespace} -o jsonpath=' {.data}' | grep username: | awk ' { print $1; }' `
92
91
if [ " ${SECRET} " != " 1" ]; then
93
92
validationError " The domain secret ${weblogicCredentialsSecretName} in namespace ${namespace} does contain a username"
94
93
fi
95
94
96
95
# Verify the secret contains a password
97
96
SECRET=` kubectl get secret ${weblogicCredentialsSecretName} -n ${namespace} -o jsonpath=' {.data}' | grep password: | wc | awk ' { print $1; }' `
98
- PASSWORD=` kubectl get secret ${weblogicCredentialsSecretName} -n ${namespace} -o jsonpath=' {.data}' | grep password: | awk ' { print $1; }' `
99
97
if [ " ${SECRET} " != " 1" ]; then
100
98
validationError " The domain secret ${weblogicCredentialsSecretName} in namespace ${namespace} does contain a password"
101
99
fi
@@ -352,12 +350,6 @@ function createDomainHome {
352
350
353
351
cd docker-images/OracleWebLogic/samples/12213-domain-home-in-image
354
352
355
- sed -i -e " s|myuser|${USERNAME} |g" properties/docker_build/domain_security.properties
356
- sed -i -e " s|mypassword1|${PASSWORD} |g" properties/docker_build/domain_security.properties
357
-
358
- sed -i -e " s|myuser|${USERNAME} |g" properties/docker_run/security.properties
359
- sed -i -e " s|mypassword1|${PASSWORD} |g" properties/docker_run/security.properties
360
-
361
353
./build.sh
362
354
363
355
if [ " $? " != " 0" ]; then
You can’t perform that action at this time.
0 commit comments