This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new a751dea249f Use alternative syntax to fix docker-compose initialization
a751dea249f is described below

commit a751dea249fa4b124e203d207cd672942caa379f
Author: Lari Hotari <[email protected]>
AuthorDate: Wed May 28 15:24:34 2025 +0300

    Use alternative syntax to fix docker-compose initialization
---
 docs/getting-started-docker-compose.md             | 28 +++++++++++++---------
 .../getting-started-docker-compose.md              | 28 +++++++++++++---------
 2 files changed, 34 insertions(+), 22 deletions(-)

diff --git a/docs/getting-started-docker-compose.md 
b/docs/getting-started-docker-compose.md
index bca20762e5f..10f8d350324 100644
--- a/docs/getting-started-docker-compose.md
+++ b/docs/getting-started-docker-compose.md
@@ -29,10 +29,13 @@ services:
     environment:
       - metadataStoreUrl=zk:zookeeper:2181
       - PULSAR_MEM=-Xms256m -Xmx256m -XX:MaxDirectMemorySize=256m
-    command: |
-      bash -c "bin/apply-config-from-env.py conf/zookeeper.conf && \
-             bin/generate-zookeeper-config.sh conf/zookeeper.conf && \
-             exec bin/pulsar zookeeper"
+    command:
+      - bash
+      - -c 
+      - |
+        bin/apply-config-from-env.py conf/zookeeper.conf && \
+        bin/generate-zookeeper-config.sh conf/zookeeper.conf && \
+        exec bin/pulsar zookeeper    
     healthcheck:
       test: ["CMD", "bin/pulsar-zookeeper-ruok.sh"]
       interval: 10s
@@ -46,13 +49,16 @@ services:
     image: apachepulsar/pulsar:latest
     networks:
       - pulsar
-    command: |
-      bash -c "bin/pulsar initialize-cluster-metadata \
-      --cluster cluster-a \
-      --zookeeper zookeeper:2181 \
-      --configuration-store zookeeper:2181 \
-      --web-service-url http://broker:8080 \
-      --broker-service-url pulsar://broker:6650"
+    command:
+      - bash
+      - -c 
+      - |
+        bin/pulsar initialize-cluster-metadata \
+        --cluster cluster-a \
+        --zookeeper zookeeper:2181 \
+        --configuration-store zookeeper:2181 \
+        --web-service-url http://broker:8080 \
+        --broker-service-url pulsar://broker:6650
     depends_on:
       zookeeper:
         condition: service_healthy
diff --git a/versioned_docs/version-4.0.x/getting-started-docker-compose.md 
b/versioned_docs/version-4.0.x/getting-started-docker-compose.md
index bca20762e5f..10f8d350324 100644
--- a/versioned_docs/version-4.0.x/getting-started-docker-compose.md
+++ b/versioned_docs/version-4.0.x/getting-started-docker-compose.md
@@ -29,10 +29,13 @@ services:
     environment:
       - metadataStoreUrl=zk:zookeeper:2181
       - PULSAR_MEM=-Xms256m -Xmx256m -XX:MaxDirectMemorySize=256m
-    command: |
-      bash -c "bin/apply-config-from-env.py conf/zookeeper.conf && \
-             bin/generate-zookeeper-config.sh conf/zookeeper.conf && \
-             exec bin/pulsar zookeeper"
+    command:
+      - bash
+      - -c 
+      - |
+        bin/apply-config-from-env.py conf/zookeeper.conf && \
+        bin/generate-zookeeper-config.sh conf/zookeeper.conf && \
+        exec bin/pulsar zookeeper    
     healthcheck:
       test: ["CMD", "bin/pulsar-zookeeper-ruok.sh"]
       interval: 10s
@@ -46,13 +49,16 @@ services:
     image: apachepulsar/pulsar:latest
     networks:
       - pulsar
-    command: |
-      bash -c "bin/pulsar initialize-cluster-metadata \
-      --cluster cluster-a \
-      --zookeeper zookeeper:2181 \
-      --configuration-store zookeeper:2181 \
-      --web-service-url http://broker:8080 \
-      --broker-service-url pulsar://broker:6650"
+    command:
+      - bash
+      - -c 
+      - |
+        bin/pulsar initialize-cluster-metadata \
+        --cluster cluster-a \
+        --zookeeper zookeeper:2181 \
+        --configuration-store zookeeper:2181 \
+        --web-service-url http://broker:8080 \
+        --broker-service-url pulsar://broker:6650
     depends_on:
       zookeeper:
         condition: service_healthy

Reply via email to