* added postgress docker compose examples * move mysql flyway into server (remove from hawkbit-repository-jpa-flyway) * in starters is added posgress and sqlserver flyway support - see [Flyway Modularity](https://github.com/flyway/flyway/issues/3780) _release_notes_ Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
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"
}'