ONAP4K8s helm chart
[multicloud/k8s.git] / deployments / start-dev.sh
1 #!/bin/bash
2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright 2019 © Samsung Electronics Co., Ltd.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 set -o errexit
12 set -o nounset
13 set -o pipefail
14
15 source _functions.sh
16
17 #
18 # Start k8splugin from compiled binaries to foreground. This is usable for development use.
19 #
20 source /etc/environment
21 k8s_path="$(git rev-parse --show-toplevel)"
22
23 stop_all
24 start_mongo
25
26 echo "Compiling source code"
27 pushd $k8s_path/src/k8splugin/
28 generate_k8sconfig
29 make all
30 ./k8plugin
31 popd