From e9e2a9ee7ab327d581eaee44cb1dde0852e85032 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 21 Nov 2026 08:09:14 +0800 Subject: [PATCH] Update crazymax/diun Docker tag to v4.34.0 (#8954) * Update crazymax/diun Docker tag to v4.34.0 * Update app version [skip ci] --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-action update-app-version Co-authored-by: okxlin <61420215+okxlin@users.noreply.github.com> --- apps/diun/4.34.0/.env.sample | 8 ++ apps/diun/4.34.0/data.yml | 133 ++++++++++++++++++++++++++ apps/diun/4.34.0/docker-compose.yml | 37 +++++++ apps/diun/4.34.0/scripts/init.sh | 7 ++ apps/diun/4.34.0/scripts/uninstall.sh | 2 + apps/diun/4.34.0/scripts/upgrade.sh | 3 + 6 files changed, 190 insertions(+) create mode 100644 apps/diun/4.34.0/.env.sample create mode 100644 apps/diun/4.34.0/data.yml create mode 100644 apps/diun/4.34.0/docker-compose.yml create mode 100755 apps/diun/4.34.0/scripts/init.sh create mode 100755 apps/diun/4.34.0/scripts/uninstall.sh create mode 100755 apps/diun/4.34.0/scripts/upgrade.sh diff --git a/apps/diun/4.34.0/.env.sample b/apps/diun/4.34.0/.env.sample new file mode 100644 index 000000000..83ed2fa56 --- /dev/null +++ b/apps/diun/4.34.0/.env.sample @@ -0,0 +1,8 @@ +CONTAINER_NAME="diun" +TZ="Asia/Shanghai" +LOG_LEVEL="info" +DIUN_WATCH_WORKERS="20" +DIUN_WATCH_SCHEDULE="0 */6 * * *" +DIUN_WATCH_JITTER="30s" +DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT="false" +DIUN_PROVIDERS_DOCKER_WATCHSTOPPED="false" diff --git a/apps/diun/4.34.0/data.yml b/apps/diun/4.34.0/data.yml new file mode 100644 index 000000000..fdbc4e18d --- /dev/null +++ b/apps/diun/4.34.0/data.yml @@ -0,0 +1,133 @@ +additionalProperties: + formFields: + - default: Asia/Shanghai + edit: true + envKey: TZ + labelEn: Timezone + labelZh: 时区 + label: + en: Timezone + zh: 时区 + zh-Hant: 時區 + ja: タイムゾーン + ko: 시간대 + ru: Часовой пояс + ms: Zon waktu + pt-br: Fuso horário + required: true + type: text + - default: 20 + edit: true + envKey: DIUN_WATCH_WORKERS + labelEn: Concurrent workers + labelZh: 并发检查数 + label: + en: Concurrent workers + zh: 并发检查数 + zh-Hant: 並行檢查數 + ja: 並列ワーカー数 + ko: 동시 작업자 수 + ru: Число параллельных обработчиков + ms: Pekerja serentak + pt-br: Processos simultâneos + required: true + type: number + - default: "0 */6 * * *" + edit: true + envKey: DIUN_WATCH_SCHEDULE + labelEn: Check schedule + labelZh: 检查计划 + label: + en: Check schedule + zh: 检查计划 + zh-Hant: 檢查排程 + ja: チェックスケジュール + ko: 검사 일정 + ru: Расписание проверки + ms: Jadual semakan + pt-br: Agenda de verificação + required: true + type: text + - default: 30s + edit: true + envKey: DIUN_WATCH_JITTER + labelEn: Schedule jitter + labelZh: 调度随机延迟 + label: + en: Schedule jitter + zh: 调度随机延迟 + zh-Hant: 排程隨機延遲 + ja: スケジュールのランダム遅延 + ko: 일정 임의 지연 + ru: Случайная задержка расписания + ms: Kelewatan rawak jadual + pt-br: Atraso aleatório da agenda + required: true + type: text + - default: "false" + edit: true + envKey: DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT + labelEn: Watch unlabeled containers + labelZh: 监视未标记容器 + label: + en: Watch unlabeled containers + zh: 监视未标记容器 + zh-Hant: 監視未標記容器 + ja: ラベルなしコンテナを監視 + ko: 라벨 없는 컨테이너 감시 + ru: Отслеживать контейнеры без метки + ms: Pantau bekas tanpa label + pt-br: Monitorar contêineres sem rótulo + required: true + type: select + values: + - label: "true" + value: "true" + - label: "false" + value: "false" + - default: "false" + edit: true + envKey: DIUN_PROVIDERS_DOCKER_WATCHSTOPPED + labelEn: Include stopped containers + labelZh: 包含已停止容器 + label: + en: Include stopped containers + zh: 包含已停止容器 + zh-Hant: 包含已停止容器 + ja: 停止中のコンテナを含める + ko: 중지된 컨테이너 포함 + ru: Включать остановленные контейнеры + ms: Sertakan bekas yang dihentikan + pt-br: Incluir contêineres parados + required: true + type: select + values: + - label: "true" + value: "true" + - label: "false" + value: "false" + - default: info + edit: true + envKey: LOG_LEVEL + labelEn: Log level + labelZh: 日志级别 + label: + en: Log level + zh: 日志级别 + zh-Hant: 日誌級別 + ja: ログレベル + ko: 로그 수준 + ru: Уровень журнала + ms: Tahap log + pt-br: Nível de log + required: true + type: select + values: + - label: debug + value: debug + - label: info + value: info + - label: warn + value: warn + - label: error + value: error diff --git a/apps/diun/4.34.0/docker-compose.yml b/apps/diun/4.34.0/docker-compose.yml new file mode 100644 index 000000000..6b39ba1ab --- /dev/null +++ b/apps/diun/4.34.0/docker-compose.yml @@ -0,0 +1,37 @@ +services: + diun: + image: "crazymax/diun:4.34.0" + container_name: ${CONTAINER_NAME} + command: serve + restart: always + networks: + - 1panel-network + volumes: + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock + environment: + - TZ=${TZ} + - LOG_LEVEL=${LOG_LEVEL} + - LOG_JSON=false + - DIUN_WATCH_WORKERS=${DIUN_WATCH_WORKERS} + - DIUN_WATCH_SCHEDULE=${DIUN_WATCH_SCHEDULE} + - DIUN_WATCH_JITTER=${DIUN_WATCH_JITTER} + - DIUN_PROVIDERS_DOCKER=true + - DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=${DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT} + - DIUN_PROVIDERS_DOCKER_WATCHSTOPPED=${DIUN_PROVIDERS_DOCKER_WATCHSTOPPED} + healthcheck: + test: + - CMD + - diun + - healthcheck + interval: 30s + timeout: 5s + retries: 3 + start_period: 60s + labels: + createdBy: "Apps" + diun.enable: "true" + +networks: + 1panel-network: + external: true diff --git a/apps/diun/4.34.0/scripts/init.sh b/apps/diun/4.34.0/scripts/init.sh new file mode 100755 index 000000000..f74c561e2 --- /dev/null +++ b/apps/diun/4.34.0/scripts/init.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -euo pipefail + +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +ENV_FILE="${ENV_FILE:-$ROOT_DIR/.env}" + +mkdir -p "$ROOT_DIR/data" diff --git a/apps/diun/4.34.0/scripts/uninstall.sh b/apps/diun/4.34.0/scripts/uninstall.sh new file mode 100755 index 000000000..ab8a8d674 --- /dev/null +++ b/apps/diun/4.34.0/scripts/uninstall.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker-compose down --volumes diff --git a/apps/diun/4.34.0/scripts/upgrade.sh b/apps/diun/4.34.0/scripts/upgrade.sh new file mode 100755 index 000000000..9879df4c3 --- /dev/null +++ b/apps/diun/4.34.0/scripts/upgrade.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -euo pipefail +exit 0