Files
hawkbit/hawkbit-runtime/docker
Avgustin Marinov 9c86729a68 [#1393,#1008] Switch to Eclipse v2.0 license (#1427)
Switching license from EPL v1 to v2. Following
https://www.eclipse.org/legal/epl-2.0/faq.php#h.tci84nlsqpgw

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
2023-09-14 11:03:20 +03:00
..
2018-09-21 14:12:47 +02:00
2018-09-21 14:12:47 +02:00
2018-09-21 14:12:47 +02:00
2018-09-21 14:12:47 +02:00
2018-09-21 14:12:47 +02:00
2018-09-21 14:12:47 +02:00
2018-09-21 14:12:47 +02:00
2018-09-21 14:12:47 +02:00
2018-09-21 14:12:47 +02:00
2018-09-21 14:12:47 +02:00
2018-10-26 13:43:11 +02:00
2018-12-17 10:45:23 +01:00
2019-04-03 11:27:27 +02:00
2019-05-21 14:17:59 +02:00
2019-07-31 13:02:17 +02:00
2019-07-31 13:02:17 +02:00
2019-07-31 13:02:17 +02:00
2019-07-31 13:02:17 +02:00
2020-01-21 17:42:05 +01:00
2020-01-21 17:42:05 +01:00
2021-02-15 14:47:04 +01:00

hawkBit Docker

Setup

A: Docker Container

Start the hawkBit Update Server as a single container

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

B: Docker Compose

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

# Requires Docker Compose to be installed
$ docker-compose up -d

C: Docker Stack

Start the hawkBit Update Server and Device Simulator together with an MySQL and RabbitMQ instance as services within a swarm

$ docker swarm init
$ docker stack deploy -c docker-compose-stack.yml hawkbit

Access

Service / Container URL Login A B C
hawkBit Update Server http://localhost:8080/ admin:admin
hawkBit Device Simulator http://localhost:8083/ -
MySQL localhost:3306/hawkbit root
RabbitMQ http://localhost:15672 guest:guest

Configuration

You can override application.properties by setting an environment variable SPRING_APPLICATION_JSON for hawkbit container.

hawkbit:
    image: "hawkbit/hawkbit-update-server:latest-mysql"
    environment:
      SPRING_APPLICATION_JSON: '{
        "spring.datasource.url": "jdbc:mariadb://mysql:3306/hawkbit",
        "spring.rabbitmq.host": "rabbitmq",
        "spring.rabbitmq.username": "guest",
        "spring.rabbitmq.password": "guest",
        "spring.datasource.username": "root",
        "hawkbit.server.im.users[0].username": "hawkbit",
        "hawkbit.server.im.users[0].password": "{noop}isAwesome!",
        "hawkbit.server.im.users[0].firstname": "Eclipse",
        "hawkbit.server.im.users[0].lastname": "HawkBit",
        "hawkbit.server.im.users[0].permissions": "ALL"
      }'