Improve documentation
[nonrtric.git] / test / usecases / oruclosedlooprecovery / scriptversion / helm / chartmuseum_init.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
20 # build dmaap-mr helm chart & push to chartmuseum
21 cd ${SHELL_FOLDER}/dmaap-mr/
22 helm package .
23 curl --data-binary "@dmaap-mr-0.1.0.tgz" http://chartmuseum:8080/api/charts
24
25 # build message-generator helm chart & push to chartmuseum
26 cd ${SHELL_FOLDER}/message-generator/
27 helm package .
28 curl --data-binary "@message-generator-0.1.0.tgz" http://chartmuseum:8080/api/charts
29
30 # build oru-app helm chart & push to chartmuseum
31 cd ${SHELL_FOLDER}/oru-app/
32 helm package .
33 curl --data-binary "@oru-app-0.1.0.tgz" http://chartmuseum:8080/api/charts
34
35 # build sdnr-simulator helm chart & push to chartmuseum
36 cd ${SHELL_FOLDER}/sdnr-simulator/
37 helm package .
38 curl --data-binary "@sdnr-simulator-0.1.0.tgz" http://chartmuseum:8080/api/charts
39
40 # add chartmuseum repo to helm
41 helm repo add chartmuseum http://chartmuseum:8080