Files
hawkbit/docs/base-setup.md
Stanislav Trailov 40e92be32b Fix Guides in hawkBit Documentation. (#2826)
* Fix Guides in hawkBit Documentation.

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

* small fixes to clustering page

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>

---------

Signed-off-by: strailov <Stanislav.Trailov@bosch.io>
2025-11-26 11:49:50 +02:00

2.3 KiB

Base hawkBit setup

In this guide we describe how to setup a full featured hawkBit based on a production ready infrastructure.
It is based on the hawkBit update server.

The update server can in fact be run stand alone. However, only with an embedded H2, no Device Management Federation API and no artifact storage.


System Architecture

This guide describes a target architecture that is more like one that you will expect in a production system:


Prerequisites

As mentioned you can create your own application with hawkBit inside.


Configure MariaDB/MySQL connection settings

For this you can either edit the existing application.properties or create a new profile:

spring.jpa.database: MYSQL
spring.datasource.url: jdbc:mariadb://localhost:3306/YOUR_SCHEMA
spring.datasource.username: YOUR_USER
spring.datasource.password: YOUR_PWD
spring.datasource.driverClassName: org.mariadb.jdbc.Driver

Note: On Ubuntu 18.04 with MariaDB 10.1 installed from the default repository via apt install,
the COLLATE option of database has to be changed manually to latin1.
For recent versions of MariaDB running on Ubuntu this is not required. (cf. issue)


Configure RabbitMQ (optional)

Defaults are already provided for a standard Rabbit installation. Otherwise configure the following in application.properties of the two services:

spring.rabbitmq.username: guest
spring.rabbitmq.password: guest
spring.rabbitmq.virtualHost: /
spring.rabbitmq.host: localhost
spring.rabbitmq.port: 5672

Compile & Run

Compile & Run your app

See update server


Enjoy hawkBit with a real database, artifact storage and all interfaces available.