X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=installers%2Fcharm%2Fbuild.sh;h=06a6d65cea5cb01a5b88e19f2d57772c6734e4fc;hb=3ddbbd1f6c70306d13db0976e1e6b3bda0c69abd;hp=1c017ba1963dc9e2b13840b6671143c4c01c9e8a;hpb=126a443a5bd8c7245234a79f530bfa54222abb21;p=osm%2Fdevops.git diff --git a/installers/charm/build.sh b/installers/charm/build.sh index 1c017ba1..06a6d65c 100755 --- a/installers/charm/build.sh +++ b/installers/charm/build.sh @@ -13,18 +13,18 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -eux - function build() { cd $1 && tox -e build && cd .. } -build 'lcm-k8s' -build 'mon-k8s' -build 'nbi-k8s' -build 'pol-k8s' -build 'ro-k8s' -build 'ui-k8s' -build 'keystone' -build 'ng-ui' -build 'pla' \ No newline at end of file +charms="ro nbi pla pol mon lcm ng-ui keystone grafana prometheus keystone mariadb-k8s mongodb-k8s zookeeper-k8s kafka-k8s mongodb-exporter kafka-exporter mysqld-exporter" +if [ -z `which charmcraft` ]; then + sudo snap install charmcraft --edge +fi + +for charm_directory in $charms; do + echo "Building charm $charm_directory..." + # cd $charm_directory + build $charm_directory + # cd .. +done