修复Action history 为空的问题
Some checks failed
Mark & close stale issues / stale (push) Has been cancelled
Vulnerability Scan / trivy-scan (1.0) (push) Has been cancelled
Vulnerability Scan / trivy-scan (master) (push) Has been cancelled
CodeQL Advanced / Analyze (java-kotlin) (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled

This commit is contained in:
2026-06-22 16:06:08 +08:00
parent 2a425196e6
commit a3eb952931
16 changed files with 4560 additions and 67 deletions

View File

@@ -14,7 +14,7 @@ services:
# Postgres service
# ---------------------
postgres:
image: "postgres:16.5"
image: "postgres:16"
ports:
- "5432:5432"
deploy:
@@ -33,7 +33,7 @@ services:
# RabbitMQ service
# ---------------------
rabbitmq:
image: "rabbitmq:4-management-alpine"
image: "rabbitmq:management-alpine"
hostname: "rabbitmq"
environment:
RABBITMQ_DEFAULT_VHOST: "/"
@@ -44,4 +44,4 @@ services:
- "5672:5672"
deploy:
restart_policy:
condition: on-failure
condition: on-failure

View File

@@ -0,0 +1,11 @@
services:
hawkbit:
image: hawkbit/hawkbit-update-server:latest
ports:
- "9099:8080"
# 启用内置H2内存数据库不依赖外部PG/RabbitMQ
environment:
SPRING_DATASOURCE_URL: jdbc:h2:mem:hawkbit;DB_CLOSE_DELAY=-1
SPRING_JPA_HIBERNATE_DDL_AUTO: update
SPRING_H2_CONSOLE_ENABLED: true
restart: always

View File

@@ -18,7 +18,7 @@ services:
# HawkBit DDI
# ---------------------
hawkbit-ddi:
image: "hawkbit/hawkbit-ddi-server:latest"
image: "ghcr.io/eclipse-hawkbit/hawkbit-ddi-server:latest"
environment:
- 'PROFILES=postgresql'
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/hawkbit'
@@ -42,7 +42,7 @@ services:
# HawkBit DMF
# ---------------------
hawkbit-dmf:
image: "hawkbit/hawkbit-dmf-server:latest"
image: "ghcr.io/eclipse-hawkbit/hawkbit-dmf-server:latest"
environment:
- 'PROFILES=postgresql'
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/hawkbit'
@@ -62,7 +62,7 @@ services:
# HawkBit MGMT
# ---------------------
hawkbit-mgmt:
image: "hawkbit/hawkbit-mgmt-server:latest"
image: "ghcr.io/eclipse-hawkbit/hawkbit-mgmt-server:latest"
environment:
- 'PROFILES=postgresql'
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/hawkbit'

View File

@@ -1,32 +1,33 @@
#
# Copyright (c) 2018 Bosch Software Innovations GmbH and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
version: '3.7'
include:
- docker-compose-micro-services-postgres.yml
services:
# ---------------------
# HawkBit UI
# ---------------------
hawkbit-ui:
image: "hawkbit/hawkbit-ui:latest"
postgres:
image: postgres:16
environment:
- 'SPRING_APPLICATION_JSON={"hawkbit.server.mgmtUrl": "http://hawkbit-mgmt:8080"}'
restart: always
POSTGRES_DB: hawkbit
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 8088:8088
labels:
NAME: "hawkbit-ui"
- "5432:5432"
rabbitmq:
image: rabbitmq:3-management-alpine
ports:
- "15672:15672"
- "5672:5672"
hawkbit:
image: hawkbit/hawkbit-update-server:latest
ports:
- "9099:8080" # 对应你截图9091端口访问
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/hawkbit
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: postgres
SPRING_RABBITMQ_HOST: rabbitmq
depends_on:
- postgres
- rabbitmq
volumes:
artifactrepo:
driver: local
pgdata:

View File

@@ -18,7 +18,7 @@ services:
# HawkBit UI service
# ---------------------
hawkbit-ui:
image: "hawkbit/hawkbit-ui:latest"
image: "ghcr.io/eclipse-hawkbit/hawkbit-ui:lates"
environment:
- 'SPRING_APPLICATION_JSON={"hawkbit.server.mgmtUrl": "http://hawkbit:8080"}'
restart: always