From a66889c1b0f2d52101b5960e65be9e888f499b22 Mon Sep 17 00:00:00 2001 From: Srinivasan Selvam Date: Mon, 5 Oct 2020 17:49:42 +0530 Subject: [PATCH] Hawkbit installation through docker mode Signed-off-by: Srinivasan Selvam Change-Id: Ia33d12674d84995768accbfc79915c52a693ef8d --- blueprints/iotgateway/scripts/hawkbit.sh | 15 +++++++++++++++ blueprints/iotgateway/scripts/setup.sh | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 blueprints/iotgateway/scripts/hawkbit.sh diff --git a/blueprints/iotgateway/scripts/hawkbit.sh b/blueprints/iotgateway/scripts/hawkbit.sh new file mode 100644 index 0000000..6679e38 --- /dev/null +++ b/blueprints/iotgateway/scripts/hawkbit.sh @@ -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..................." diff --git a/blueprints/iotgateway/scripts/setup.sh b/blueprints/iotgateway/scripts/setup.sh index 4e06b3a..41f845a 100755 --- a/blueprints/iotgateway/scripts/setup.sh +++ b/blueprints/iotgateway/scripts/setup.sh @@ -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} -- 2.16.6