Getting Started

From Docker Image

Overview

HawkBit Update Server default user has admin/admin as default credentials. See below how the user can be changed.

It supports two configurations:

  • monolith - hawkbit-update-server
  • micro-service - hawkbit-mgmt-server, hawkbit-ddi-server, hawkbit-dmf-server.

A: Run hawkBit Update Server (Monolith) as Docker Container

Start the hawkBit Update Server as a single container

$ docker run -p 8080:8080 hawkbit/hawkbit-update-server:latest

This will start hawkBit update server with embedded H2 database for evaluation purposes.

B: Run hawkBit Update Server (Monolith) with services as Docker Compose

Start the hawkBit Update Server together with an PostgreSQL and RabbitMQ instance as containers

$ git clone https://github.com/eclipse-hawkbit/hawkbit.git
$ cd hawkbit/docker
$ docker-compose -f docker-compose-monolith-postgres.yml up -d

or with MySQL

$ git clone https://github.com/eclipse-hawkbit/hawkbit.git
$ cd hawkbit/docker
$ docker-compose -f docker-compose-monolith-mysql.yml up -d

If you want to start also the Simple UI, you can use, for PostgreSQL:

$ git clone https://github.com/eclipse-hawkbit/hawkbit.git
$ cd hawkbit/docker
$ docker-compose -f docker-compose-monolith-with-simple-ui-postgres.yml up -d

or with MySQL

$ git clone https://github.com/eclipse-hawkbit/hawkbit.git
$ cd hawkbit/docker
$ docker-compose -f docker-compose-monolith-simple-ui-mysql.yml up -d

Note: -d flag is used to run the containers in detached mode. If you want to see the logs, you can remove the flag.

C: Run hawkBit Update Server (Micro-Service) with services as Docker Compose

Start the hawkBit Update Server together with an PostgreSQL and RabbitMQ instance as containers

$ git clone https://github.com/eclipse-hawkbit/hawkbit.git
$ cd hawkbit/docker
$ docker-compose -f docker-compose-micro-services-postgres.yml up -d

or with MySQL

$ git clone https://github.com/eclipse-hawkbit/hawkbit.git
$ cd hawkbit/docker
$ docker-compose -f docker-compose-micro-services-mysql.yml up -d

If you want to start also the Simple UI, you can use, for PostgreSQL:

$ git clone https://github.com/eclipse-hawkbit/hawkbit.git
$ cd hawkbit/docker
$ docker-compose -f docker-compose-micro-services-with-simple-ui-postgres.yml up -d

or with MySQL

$ git clone https://github.com/eclipse-hawkbit/hawkbit.git
$ cd hawkbit/docker
$ docker-compose -f docker-compose-micro-services-simple-ui-mysql.yml up -d

Note: -d flag is used to run the containers in detached mode. If you want to see the logs, you can remove the flag.

From Sources

1: Clone and build hawkBit

$ git clone https://github.com/eclipse-hawkbit/hawkbit.git
$ cd hawkbit
$ mvn clean install -DskipTests

2: Start hawkBit update server (Monolith)

$ java -jar ./hawkbit-monolith/hawkbit-update-server/target/hawkbit-update-server-0-SNAPSHOT.jar

Note: you could start it also in microservices mode by:

$ java -jar ./hawkbit-mgmt/hawkbit-mgmt-server/target/hawkbit-mgmt-server-0-SNAPSHOT.jar
$ java -jar ./hawkbit-ddi/hawkbit-ddi-server/target/hawkbit-ddi-server-0-SNAPSHOT.jar

and (only if you want to use the DMF feature):

$ java -jar ./hawkbit-dmf/hawkbit-dmf-server/target/hawkbit-dmf-server-0-SNAPSHOT.jar

Note: you could starte the Simple UI by:

$ java -jar ./hawkbit-simple-ui/target/hawkbit-simple-ui-0-SNAPSHOT.jar

Configuration

Change credentials

As stated before the default user is admin/admin. It could be overridden by changing the TenantAwareUserProperties configuration using Spring ways. For instance, using a properties file like:

# should remove the admin/admin user
hawkbit.security.user.admin.tenant=#{null}
hawkbit.security.user.admin.password=#{null}
hawkbit.security.user.admin.roles=#{null}
# should add a hawkbit/isAwesome! user
hawkbit.security.user.hawkbit.tenant=DEFAULT
hawkbit.security.user.hawkbit.password={noop}isAwesome!
hawkbit.security.user.hawkbit.roles=TENANT_ADMIN

which should remove the default admin/admin user and add a hawkbit user hawkbit with password isAwesome! and a role TENANT_ADMIN.

You could create multiple users with specified roles.