Files
hawkbit/docker/README.md
Avgustin Marinov 4a8be5ee75 Docker improvements (#2088)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
2024-11-20 16:22:48 +02:00

2.3 KiB

hawkBit Docker

Setup

A: Docker Container

Start the hawkBit Update Server as a single container (requires Docker to be installed and all dependencies to be available)

$ 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 -f docker-compose-monolith-mysql.yml up

You could, also start it in different flavours, with UI or in microservices mode.

Note: Whit the upper command CTRL+C shuts down all services. Add '-d' at the end to start all into detached mode:

$ docker compose -f docker-compose-monolith-mysql.yml up -d

Then stop all services with:

$ docker compose -f docker-compose-monolith-mysql.yml down

Access

Service / Container URL Login A B C
hawkBit Update Server http://localhost:8080/ admin:admin
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"
    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"
      }'