2018-08-01 11:01:02 +02:00
---
title: Getting Started
weight: 20
---
2018-08-23 13:29:08 +02:00
## On Sandbox
2021-10-28 16:24:42 +01:00
We offer a sandbox installation that is free for everyone to try out hawkBit's [Management UI ](/hawkbit/ui/ ),
2018-09-21 14:12:47 +02:00
[Management API ](/hawkbit/apis/management_api/ ), and [Direct Device Integration API ](/hawkbit/apis/ddi_api/ ):
2023-01-10 07:59:27 +01:00
**[<i class="fas fa-desktop"> </i> https://hawkbit.eclipseprojects.io ](https://hawkbit.eclipseprojects.io )**
2018-08-23 13:29:08 +02:00
{{% warning %}}
2018-09-21 14:12:47 +02:00
The sandbox is a shared installation that will be reset from time to time. Therefore, it is not allowed to upload
any personal data.
2018-08-23 13:29:08 +02:00
{{% /warning %}}
In addition, the following vendors offer free trial accounts for their Eclipse hawkBit compatible products:
2023-04-25 09:34:46 +02:00
* [Bosch IoT Rollouts ](https://bosch-iot-suite.com/service/rollouts/ ) (by [Bosch Digital ](https://www.bosch-digital.com ))
2020-09-15 16:52:39 +02:00
* [Kynetics Update Factory ](https://www.kynetics.com/update-factory ) (by [Kynetics LLC ](https://www.kynetics.com/ ))
2018-08-23 13:29:08 +02:00
2018-08-01 11:01:02 +02:00
## From Docker Image
2018-09-21 14:12:47 +02:00
### Overview
2018-08-01 11:01:02 +02:00
2023-12-04 15:15:54 +02:00
HawkBit Update Server username/password -> admin/admin as default login credentials. They can be overridden by the environment variables spring.security.user.name and spring.security.user.password which are defined in the corresponding default [application.properties ](hawkbit-runtime/hawkbit-update-server/src/main/resources/application.properties ).
2021-10-28 16:24:42 +01:00
2023-12-04 15:15:54 +02:00
It supports two configurations:
* monolith - hawkbit-update-server
* micro-service - hawkbit-mgmt-server, hawkbit-ddi-server, hawkbit-dmf-server, hawkbit-vv8-ui.
2018-09-21 14:12:47 +02:00
2023-12-04 15:15:54 +02:00
### A: Run hawkBit Update Server (Monolith) as Docker Container
2018-09-21 14:12:47 +02:00
Start the hawkBit Update Server as a single container
```bash
$ docker run -p 8080:8080 hawkbit/hawkbit-update-server:latest
2018-08-01 11:01:02 +02:00
```
2023-12-04 15:15:54 +02:00
### B: Run hawkBit Update Server (Monolith) with services as Docker Compose
2018-08-01 11:01:02 +02:00
2018-09-21 14:12:47 +02:00
Start the hawkBit Update Server together with an MySQL and RabbitMQ instance as containers
```bash
2018-08-01 11:01:02 +02:00
$ git clone https://github.com/eclipse/hawkbit.git
2018-09-21 17:01:24 +02:00
$ cd hawkbit/hawkbit-runtime/docker
2023-12-04 15:15:54 +02:00
$ docker-compose -f docker-compose-monolith-mysql.yml up -d
2018-08-01 11:01:02 +02:00
```
2018-09-21 14:12:47 +02:00
2023-12-04 15:15:54 +02:00
### C: Run hawkBit Update Server (Micro-Service) with services as Docker Compose
2018-09-21 14:12:47 +02:00
2023-12-04 15:15:54 +02:00
Start the hawkBit Update Server together with an MySQL and RabbitMQ instance as containers
2018-09-21 14:12:47 +02:00
```bash
$ git clone https://github.com/eclipse/hawkbit.git
2018-09-21 17:01:24 +02:00
$ cd hawkbit/hawkbit-runtime/docker
2023-12-04 15:15:54 +02:00
$ docker-compose -f docker-compose-micro-service-mysql.yml up -d
2018-09-21 14:12:47 +02:00
```
2018-08-01 11:01:02 +02:00
## From Sources
2018-08-23 13:29:08 +02:00
### 1: Clone and build hawkBit
2018-08-01 11:01:02 +02:00
```sh
$ git clone https://github.com/eclipse/hawkbit.git
$ cd hawkbit
$ mvn clean install
```
2023-12-04 15:15:54 +02:00
### 2: Start hawkBit [update server](https://github.com/eclipse/hawkbit/tree/master/hawkbit-runtime/hawkbit-update-server) (Monolith)
2018-08-01 11:01:02 +02:00
```sh
$ java -jar ./hawkbit-runtime/hawkbit-update-server/target/hawkbit-update-server-#version #-SNAPSHOT.jar
```
2018-08-23 13:29:08 +02:00
### 3: Build hawkBit examples
2018-08-01 11:01:02 +02:00
```sh
$ git clone https://github.com/eclipse/hawkbit-examples.git
$ cd hawkbit-examples
$ mvn clean install
```
2018-08-23 13:29:08 +02:00
### 4: Start hawkBit [Device Simulator](https://github.com/eclipse/hawkbit-examples/tree/master/hawkbit-device-simulator)
2018-08-01 11:01:02 +02:00
```sh
$ java -jar ./hawkbit-device-simulator/target/hawkbit-device-simulator-#version #.jar
```
2018-08-23 13:29:08 +02:00
### 5: Generate Getting Started data with [Example Management API Client](https://github.com/eclipse/hawkbit-examples/tree/master/hawkbit-example-mgmt-simulator)
2018-08-01 11:01:02 +02:00
```sh
$ java -jar ./hawkbit-example-mgmt-simulator/target/hawkbit-example-mgmt-simulator-#version #.jar
2018-09-21 17:01:24 +02:00
```