From 124426f3315ce1a0226ddcc78a3cad3580a0bd65 Mon Sep 17 00:00:00 2001 From: mohsin-plivo Date: Thu, 17 Oct 2024 14:47:51 +0530 Subject: [PATCH] Fix make start --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8de2b90..681e5ba 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,11 @@ build: start: docker-compose up --build --remove-orphans --detach - docker attach $(shell docker-compose ps -q goSDK) + # Wait for the container to be running before attaching + @while [ -z "$$(docker-compose ps -q goSDK)" ]; do \ + sleep 1; \ + done + docker attach $$(docker-compose ps -q goSDK) test: @[ "${CONTAINER}" ] && \