Merge "Hawkbit installation through docker mode"
authorkhemendra kumar <khemendra.kumar@huawei.com>
Wed, 18 Nov 2020 12:40:04 +0000 (12:40 +0000)
committerGerrit Code Review <gerrit@akraino.org>
Wed, 18 Nov 2020 12:40:04 +0000 (12:40 +0000)
blueprints/iotgateway/scripts/hawkbit.sh [new file with mode: 0644]
blueprints/iotgateway/scripts/setup.sh

diff --git a/blueprints/iotgateway/scripts/hawkbit.sh b/blueprints/iotgateway/scripts/hawkbit.sh
new file mode 100644 (file)
index 0000000..6679e38
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash -ex
+##############################################################################
+# Copyright (c) 2019 Huawei Tech and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+# Install hawkbit through docker container
+
+sudo docker run -p 8080:8080 hawkbit/hawkbit-update-server:latest
+
+echo "Hawkbit installation successfull on IOTGateway..................."
index 4e06b3a..41f845a 100755 (executable)
@@ -206,6 +206,11 @@ install_edgex
 sleep 20
 verify_edgex
 
+
+# Installing hawkbit through docker container
+chmod +x hawkbit.sh
+nohup ./hawkbit.sh
+
 # Installing OPC-UA on IOT Gateway Node
 
 cd ${setupPath}