jiazhai commented on a change in pull request #701: ISSUE-#328: add a Docker 
Compose example file
URL: https://github.com/apache/bookkeeper/pull/701#discussion_r154556559
 
 

 ##########
 File path: docker/docker-compose.yml
 ##########
 @@ -0,0 +1,28 @@
+version: '2'
+
+services:
+  zookeeper:
+    image: zookeeper
+    hostname: zookeeper
+    ports:
+      - "2181:2181"
+  bookkeeper:
+    image: apache/bookkeeper
+    build: .
+    depends_on:
+      - zookeeper
 
 Review comment:
   This 'depends_on' is OK here. 
   But it is just a simple deploy order, will not wait for the service to be 
ready.  Since we have the handling in bookkeeper docker to wait for zk ready, 
this is not a big problem.
   so the depends_on in line 22 need more work. please reference 
https://docs.docker.com/compose/startup-order/ for more details.
   
   Or we could change the bookkeeper-tutorial docker image to wait for 
bookkeeper cluster to be ready.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to