2017-03-30 08:46:31 +02:00
|
|
|
# hawkBit Update Server
|
2018-06-11 16:04:12 +02:00
|
|
|
|
2023-11-30 15:41:12 +02:00
|
|
|
The hawkBit Update Server (Monolith) is a standalone spring-boot application with an embedded servlet container .
|
2016-01-21 13:18:55 +01:00
|
|
|
|
2016-04-02 13:29:40 +02:00
|
|
|
## On your own workstation
|
2018-06-11 16:04:12 +02:00
|
|
|
|
2016-04-02 13:29:40 +02:00
|
|
|
### Run
|
2018-06-11 16:04:12 +02:00
|
|
|
|
|
|
|
|
```bash
|
2024-11-27 08:14:52 +02:00
|
|
|
java -jar hawkbit-monolith/hawkbit-update-server/target/hawkbit-update-server-*-SNAPSHOT.jar
|
2016-01-21 13:18:55 +01:00
|
|
|
```
|
2016-05-02 17:08:01 +02:00
|
|
|
|
2016-05-02 17:08:43 +02:00
|
|
|
_(Note: you have to add the JDBC driver also to your class path if you intend to use another database than H2.)_
|
2016-05-02 17:08:01 +02:00
|
|
|
|
2016-01-21 13:18:55 +01:00
|
|
|
Or:
|
2016-05-02 17:08:01 +02:00
|
|
|
|
2018-06-11 16:04:12 +02:00
|
|
|
```bash
|
2023-11-30 15:41:12 +02:00
|
|
|
run org.eclipse.hawkbit.doc.Start
|
2016-01-21 13:18:55 +01:00
|
|
|
```
|
|
|
|
|
|
2016-04-02 13:29:40 +02:00
|
|
|
### Usage
|
2018-06-11 16:04:12 +02:00
|
|
|
|
2016-04-02 13:29:40 +02:00
|
|
|
The Management API can be accessed via http://localhost:8080/rest/v1
|
|
|
|
|
|
2018-06-11 16:04:12 +02:00
|
|
|
## Enable Clustering (experimental)
|
2016-11-03 15:53:53 +01:00
|
|
|
|
|
|
|
|
Clustering in hawkBit is based on _Spring Cloud Bus_. It is not enabled in the example app by default.
|
|
|
|
|
|
|
|
|
|
Add to your `application.properties` :
|
|
|
|
|
|
2018-06-11 16:04:12 +02:00
|
|
|
```properties
|
2016-11-03 15:53:53 +01:00
|
|
|
spring.cloud.bus.enabled=true
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Add to your `pom.xml` :
|
|
|
|
|
|
2018-06-11 16:04:12 +02:00
|
|
|
```xml
|
2016-11-03 15:53:53 +01:00
|
|
|
<dependency>
|
2018-06-11 16:04:12 +02:00
|
|
|
<groupId>org.springframework.cloud</groupId>
|
|
|
|
|
<artifactId>spring-cloud-stream-binder-rabbit</artifactId>
|
2016-11-03 15:53:53 +01:00
|
|
|
</dependency>
|
|
|
|
|
```
|
|
|
|
|
|
2024-11-05 11:38:12 +02:00
|
|
|
Optional as well is the addition of [Protostuff](https://github.com/protostuff/protostuff) based message payload
|
|
|
|
|
serialization for improved performance.
|
2016-11-03 15:53:53 +01:00
|
|
|
|
|
|
|
|
Add to your `application.properties` :
|
|
|
|
|
|
2018-06-11 16:04:12 +02:00
|
|
|
```properties
|
2016-11-03 15:53:53 +01:00
|
|
|
spring.cloud.stream.bindings.springCloudBusInput.content-type=application/binary+protostuff
|
|
|
|
|
spring.cloud.stream.bindings.springCloudBusOutput.content-type=application/binary+protostuff
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Add to your `pom.xml` :
|
|
|
|
|
|
2018-06-11 16:04:12 +02:00
|
|
|
```xml
|
2016-11-03 15:53:53 +01:00
|
|
|
<dependency>
|
2018-06-11 16:04:12 +02:00
|
|
|
<groupId>io.protostuff</groupId>
|
|
|
|
|
<artifactId>protostuff-core</artifactId>
|
2016-11-03 15:53:53 +01:00
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
2018-06-11 16:04:12 +02:00
|
|
|
<groupId>io.protostuff</groupId>
|
|
|
|
|
<artifactId>protostuff-runtime</artifactId>
|
2016-11-03 15:53:53 +01:00
|
|
|
</dependency>
|
|
|
|
|
```
|