Corrected rApp Catalogue image tag for d release test
[nonrtric.git] / test / usecases / oruclosedlooprecovery / scriptversion / k8s / start.sh
1 #  Copyright (C) 2021 Nordix Foundation. All rights reserved.
2 #  ========================================================================
3 #  Licensed under the Apache License, Version 2.0 (the "License");
4 #  you may not use this file except in compliance with the License.
5 #  You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14 #  ============LICENSE_END=================================================
15 #
16
17 SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
18 cd ${SHELL_FOLDER}
19 kubectl delete -f linkfailure.yml
20
21 # be careful if other stopped containers are on the same system
22 docker stop $(docker ps -aq)
23 docker system prune -f
24
25 # build o-ru application image
26 cd ${SHELL_FOLDER}/../app/
27 docker build -t oru-app .
28
29 # build simulator image of sdnr
30 cd ${SHELL_FOLDER}/../simulators/
31 docker build -f Dockerfile-sdnr-sim -t sdnr-simulator .
32
33 # build message generator image
34 docker build -f Dockerfile-message-generator -t message-generator .
35
36 # build dmaap-mr sim
37 cd ${SHELL_FOLDER}/../../../../mrstub/
38 docker build -t mrstub .
39
40 # apply k8s yaml file
41 cd ${SHELL_FOLDER}
42 kubectl apply -f linkfailure.yml