|
2 | 2 | # Copyright 2018, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
|
3 | 3 | # Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
|
4 | 4 |
|
5 |
| -# the below function is not used |
6 |
| -function docker_login { |
7 |
| - |
8 |
| - set +x |
9 |
| - if [ -z "$DOCKER_USERNAME" ] || [ -z "$DOCKER_PASSWORD" ]; then |
10 |
| - echo "DOCKER_USERNAME and DOCKER_PASSWORD not set !!!" |
11 |
| - exit 1 |
12 |
| - fi |
13 |
| - |
14 |
| - if [ -n "$DOCKER_USERNAME" ] && [ -n "$DOCKER_PASSWORD" ]; then |
15 |
| - echo "Creating Docker Secret" |
16 |
| - |
17 |
| - kubectl create secret docker-registry $IMAGE_PULL_SECRET_WEBLOGIC \ |
18 |
| - --docker-server=index.docker.io/v1/ \ |
19 |
| - --docker-username=$DOCKER_USERNAME \ |
20 |
| - --docker-password=$DOCKER_PASSWORD \ |
21 |
| - --dry-run -o yaml | kubectl apply -f - |
22 |
| - |
23 |
| - echo "Checking Secret" |
24 |
| - SECRET="`kubectl get secret $IMAGE_PULL_SECRET_WEBLOGIC | grep $IMAGE_PULL_SECRET_WEBLOGIC | wc | awk ' { print $1; }'`" |
25 |
| - if [ "$SECRET" != "1" ]; then |
26 |
| - echo "secret $IMAGE_PULL_SECRET_WEBLOGIC was not created successfully" |
27 |
| - exit 1 |
28 |
| - fi |
29 |
| - # below docker pull is needed to get wlthint3client.jar from image to put in the classpath |
30 |
| - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD |
31 |
| - fi |
32 |
| - set -x |
33 |
| - |
34 |
| -} |
35 |
| - |
36 | 5 | function setup_shared_cluster {
|
37 | 6 | echo "Perform setup for running on shared cluster"
|
38 | 7 | echo "Install tiller"
|
@@ -116,18 +85,6 @@ function pull_tag_images_jrf {
|
116 | 85 | set -x
|
117 | 86 | }
|
118 | 87 |
|
119 |
| -# the below function is not used |
120 |
| -function get_wlthint3client_from_image { |
121 |
| - # Get wlthint3client.jar from image |
122 |
| - id=$(docker create $IMAGE_NAME_WEBLOGIC:$IMAGE_TAG_WEBLOGIC) |
123 |
| - docker cp $id:/u01/oracle/wlserver/server/lib/wlthint3client.jar $SCRIPTPATH |
124 |
| - if [ ! "$?" = "0" ] ; then |
125 |
| - echo "Docker Copy failed for wlthint3client.jar" |
126 |
| - exit 1 |
127 |
| - fi |
128 |
| - docker rm -v $id |
129 |
| - |
130 |
| -} |
131 | 88 | export OCR_SERVER="${OCR_SERVER:-container-registry.oracle.com}"
|
132 | 89 | export WLS_IMAGE_URI=/middleware/weblogic
|
133 | 90 | export SCRIPTPATH="$( cd "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )"
|
|
0 commit comments