Files
hawkbit/hawkbit-runtime/hawkbit-update-server/README.md

66 lines
1.6 KiB
Markdown
Raw Normal View History

# hawkBit Update Server
2018-06-11 16:04:12 +02:00
The hawkBit Update Server is a standalone spring-boot application with an embedded servlet container .
## On your own workstation
2018-06-11 16:04:12 +02:00
### Run
2018-06-11 16:04:12 +02:00
```bash
java -jar hawkbit-runtime/hawkbit-update-server/target/hawkbit-update-server-*-SNAPSHOT.jar
```
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
Or:
2016-05-02 17:08:01 +02:00
2018-06-11 16:04:12 +02:00
```bash
run org.eclipse.hawkbit.app.Start
```
### Usage
2018-06-11 16:04:12 +02:00
The Management UI can be accessed via http://localhost:8080/UI
The Management API can be accessed via http://localhost:8080/rest/v1
2018-06-11 16:04:12 +02:00
## Enable Clustering (experimental)
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
spring.cloud.bus.enabled=true
```
Add to your `pom.xml` :
2018-06-11 16:04:12 +02:00
```xml
<dependency>
2018-06-11 16:04:12 +02:00
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-rabbit</artifactId>
</dependency>
```
Optional as well is the addition of [Protostuff](https://github.com/protostuff/protostuff) based message payload serialization for improved performance.
Add to your `application.properties` :
2018-06-11 16:04:12 +02:00
```properties
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
<dependency>
2018-06-11 16:04:12 +02:00
<groupId>io.protostuff</groupId>
<artifactId>protostuff-core</artifactId>
</dependency>
<dependency>
2018-06-11 16:04:12 +02:00
<groupId>io.protostuff</groupId>
<artifactId>protostuff-runtime</artifactId>
</dependency>
```