style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions
+10 -10
View File
@@ -7,7 +7,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
services:
# Standalone mode (default) - single node deployment for development/testing
@@ -15,11 +15,11 @@ services:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}apachepulsar/pulsar:${PULSAR_VERSION:-4.0.7}
profiles:
- ""
- ''
hostname: pulsar-standalone
ports:
- "${PULSAR_BROKER_PORT_OVERRIDE:-6650}:6650"
- "${PULSAR_HTTP_PORT_OVERRIDE:-8080}:8080"
- '${PULSAR_BROKER_PORT_OVERRIDE:-6650}:6650'
- '${PULSAR_HTTP_PORT_OVERRIDE:-8080}:8080'
volumes:
- pulsar_data:/pulsar/data
- pulsar_conf:/pulsar/conf
@@ -37,7 +37,7 @@ services:
cpus: ${PULSAR_CPU_RESERVATION:-0.50}
memory: ${PULSAR_MEMORY_RESERVATION:-512M}
healthcheck:
test: ["CMD-SHELL", "bin/pulsar-admin brokers healthcheck || exit 1"]
test: [CMD-SHELL, 'bin/pulsar-admin brokers healthcheck || exit 1']
interval: 30s
timeout: 10s
retries: 5
@@ -70,7 +70,7 @@ services:
cpus: ${ZOOKEEPER_CPU_RESERVATION:-0.25}
memory: ${ZOOKEEPER_MEMORY_RESERVATION:-256M}
healthcheck:
test: ["CMD", "bin/pulsar-zookeeper-ruok.sh"]
test: [CMD, bin/pulsar-zookeeper-ruok.sh]
interval: 10s
timeout: 5s
retries: 30
@@ -124,7 +124,7 @@ services:
cpus: ${BOOKIE_CPU_RESERVATION:-0.25}
memory: ${BOOKIE_MEMORY_RESERVATION:-512M}
healthcheck:
test: ["CMD", "bin/bookkeeper", "shell", "bookiesanity"]
test: [CMD, bin/bookkeeper, shell, bookiesanity]
interval: 30s
timeout: 10s
retries: 5
@@ -137,8 +137,8 @@ services:
profiles:
- cluster
ports:
- "${PULSAR_BROKER_PORT_OVERRIDE:-6650}:6650"
- "${PULSAR_HTTP_PORT_OVERRIDE:-8080}:8080"
- '${PULSAR_BROKER_PORT_OVERRIDE:-6650}:6650'
- '${PULSAR_HTTP_PORT_OVERRIDE:-8080}:8080'
environment:
- TZ=${TZ:-UTC}
- metadataStoreUrl=zk:zookeeper:2181
@@ -165,7 +165,7 @@ services:
cpus: ${BROKER_CPU_RESERVATION:-0.50}
memory: ${BROKER_MEMORY_RESERVATION:-512M}
healthcheck:
test: ["CMD", "bin/pulsar-admin", "brokers", "healthcheck"]
test: [CMD, bin/pulsar-admin, brokers, healthcheck]
interval: 30s
timeout: 10s
retries: 5