20250828 cleanup (#2639)

* Cleanup

* Refactor artifact management
This commit is contained in:
Avgustin Marinov
2025-09-02 16:08:14 +03:00
committed by GitHub
parent 4f0a8893c7
commit 2a636328a0
305 changed files with 2253 additions and 4566 deletions

View File

@@ -1,24 +1,33 @@
hawkBit Docker
===
# Setup
## Overview
This folder contains example Docker build and Docker Compose files to build and start the hawkBit as monolith or as microservices.
## A: Docker Container
Start the hawkBit Update Server as a single container (requires Docker to be installed and all dependencies to be available)
## Build
You could build the hawkbit Docker images following the [README.md](build/README.md) instructions.
## Start
You can start hawkbit as a Docker Container (only monolith) or with Docker Compose
#### A: Docker Container (only as monolith)
_Note: You need to have Docker installed on your machine._
Start the hawkBit Update Server (monolith) as a single container (with embedded H2, if you configure a different database, e.g. MySQL or PostgreSQL, you should start it separately):
```bash
$ 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)
### B: Docker Compose
_Note: You need to have Docker Compose installed on your machine._
Start the hawkBit Update Server (monolith) together with an MySQL and RabbitMQ instance as containers (Requires Docker Compose to be installed)
```bash
$ docker compose -f mysql/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:
With the upper command CTRL+C shuts down all services. Add '-d' at the end to start all into detached mode:
```bash
$ docker compose -f mysql/docker-compose-monolith-mysql.yml up -d
```
@@ -27,15 +36,20 @@ Then stop all services with:
$ docker compose -f mysql/docker-compose-monolith-mysql.yml down
```
# Access
| Service / Container | URL | Login | A | B | C |
|--------------------------|--------------------------------------------------|-------------|----------|----------|----------|
| hawkBit Update Server | [http://localhost:8080/](http://localhost:8080/) | admin:admin | ✓ | ✓ | ✓ |
| MySQL | localhost:3306/hawkbit | root | | ✓ | ✓ |
| RabbitMQ | [http://localhost:15672](http://localhost:15672) | guest:guest | | ✓ | ✓ |
You could, also start it in different flavours, with UI or in microservices mode (see Docker Compose files in [mysql](./mysql) and [postgres](./postgres) folders). For instance to start with PostgreSQL, with RabbitMQ, in microservices mode and with UI you could use:
```bash
$ docker compose -f postgres/docker-compose-micro-services-with-simple-ui-postgres.yml up
```
# Configuration
You can override application.properties by setting an environment variable SPRING_APPLICATION_JSON for hawkbit container.
### Access
| Service / Container | URL | Login | A | B |
|-----------------------|------------------------|-------------|----------|----------|
| hawkBit Update Server | [http://localhost:8080/](http://localhost:8080/) | admin:admin | ✓ | ✓ |
| MySQL | localhost:3306/hawkbit | root | | ✓ |
| RabbitMQ | [http://localhost:15672](http://localhost:15672) | guest:guest | | ✓ |
### Configuration
You can override _application.properties_ by setting an environment variable _SPRING_APPLICATION_JSON_ to the hawkbit container, e.g.:
```yaml
hawkbit:
@@ -55,4 +69,4 @@ hawkbit:
"hawkbit.security.user.hawkbit.password": "{noop}isAwesome!",
"hawkbit.security.user.hawkbit.roles": "TENANT_ADMIN"
}'
```
```

View File

@@ -28,9 +28,7 @@ Docker image could be build, for example, with (fixed version 0.4.1 is just an e
```shell
docker build --build-arg HAWKBIT_APP=hawkbit-update-server --build-arg HAWKBIT_VERSION=0.4.1 -t hawkbit_update_server:0.4.1 . -f Dockerfile
```
or just by:
```shell
docker build --build-arg HAWKBIT_VERSION=0.4.1 -t hawkbit_update_server:0.4.1 .
```