Skip to content

Commit 5a1099e

Browse files
committed
removed unused functions
1 parent af50d78 commit 5a1099e

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

integration-tests/src/test/resources/setupenv.sh

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,6 @@
22
# Copyright 2018, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
33
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
44

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-
365
function setup_shared_cluster {
376
echo "Perform setup for running on shared cluster"
387
echo "Install tiller"
@@ -116,18 +85,6 @@ function pull_tag_images_jrf {
11685
set -x
11786
}
11887

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-
}
13188
export OCR_SERVER="${OCR_SERVER:-container-registry.oracle.com}"
13289
export WLS_IMAGE_URI=/middleware/weblogic
13390
export SCRIPTPATH="$( cd "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )"

0 commit comments

Comments
 (0)