3 # ============LICENSE_START=======================================================
4 # Copyright (C) 2017 AT&T Intellectual Property. All rights
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 # ============LICENSE_END============================================
19 # ===================================================================
20 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 echo "This is ${WORKSPACE}/scripts/modeling-toscaparsers-javatoscachecker/setup_containers.sh"
26 run-instance.sh nexus3.onap.org:10001/onap/modeling/javatoscachecker:latest modeling_javatoscachecker_1 "-p 8080:8080"
28 #checker docker image is accesible: picked from clamp, some common script would be good
32 while [ "$TIME" -lt "$TIME_OUT" ]; do
33 response=$(curl --write-out '%{http_code}' --silent --output /dev/null http://localhost:8080/check_template/test_me); echo $response
35 if [ "$response" == "404" ]; then
36 echo javatoscachecker service started in $TIME seconds
40 echo Sleep: $INTERVAL seconds before testing if javatoscachecker service is up. Total wait time up now is: $TIME seconds. Timeout is: $TIME_OUT seconds
42 TIME=$(($TIME+$INTERVAL))
45 if [ "$TIME" -ge "$TIME_OUT" ]; then
46 echo TIME OUT: Docker containers not started in $TIME_OUT seconds... Could cause problems for tests...