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
7 # http://www.apache.org/licenses/LICENSE-2.0
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=================================================
17 SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
19 kubectl delete -f linkfailure.yml
21 # be careful if other stopped containers are on the same system
22 docker stop $(docker ps -aq)
23 docker system prune -f
25 # build o-ru application image
26 cd ${SHELL_FOLDER}/../app/
27 docker build -t oru-app .
29 # build simulator image of sdnr
30 cd ${SHELL_FOLDER}/../simulators/
31 docker build -f Dockerfile-sdnr-sim -t sdnr-simulator .
33 # build message generator image
34 docker build -f Dockerfile-message-generator -t message-generator .
37 cd ${SHELL_FOLDER}/../../../../mrstub/
38 docker build -t mrstub .
42 kubectl apply -f linkfailure.yml