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 helm uninstall dmaap-mr message-generator oru-app sdnr-simulator -n nonrtric
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 .
40 # build dmapp-mr helm chart & install chart
41 cd ${SHELL_FOLDER}/dmaap-mr/
43 helm install dmaap-mr dmaap-mr-0.1.0.tgz --namespace nonrtric --create-namespace --wait
45 # build dmapp-mr helm chart & install chart
46 cd ${SHELL_FOLDER}/message-generator/
48 helm install message-generator message-generator-0.1.0.tgz --namespace nonrtric --create-namespace --wait
50 # build dmapp-mr helm chart & install chart
51 cd ${SHELL_FOLDER}/oru-app/
53 helm install oru-app oru-app-0.1.0.tgz --namespace nonrtric --create-namespace --wait
55 # build dmapp-mr helm chart & install chart
56 cd ${SHELL_FOLDER}/sdnr-simulator/
58 helm install sdnr-simulator sdnr-simulator-0.1.0.tgz --namespace nonrtric --create-namespace --wait