Commit
Β·
4c8be6e
1
Parent(s):
9dfb063
Fix the command for opening shell in Makefile
Browse files
Makefile
CHANGED
@@ -227,32 +227,32 @@ db-purge:
|
|
227 |
# --------------------------------------
|
228 |
shell-api:
|
229 |
@echo "π»π’ Opening a bash shell in the RasaGPT API container ..\n"
|
230 |
-
@if docker ps | grep
|
231 |
-
docker exec -it $$(docker ps | grep
|
232 |
else \
|
233 |
-
echo "Container
|
234 |
fi
|
235 |
|
236 |
# ---------------------------------------
|
237 |
# Open a bash shell in the Rasa container
|
238 |
# ---------------------------------------
|
239 |
shell-rasa:
|
240 |
-
@echo "π»π’ Opening a bash shell in the
|
241 |
-
@if docker ps | grep
|
242 |
-
docker exec -it $$(docker ps | grep
|
243 |
else \
|
244 |
-
echo "Container
|
245 |
fi
|
246 |
|
247 |
# -----------------------------------------------
|
248 |
# Open a bash shell in the Rasa actions container
|
249 |
# -----------------------------------------------
|
250 |
shell-actions:
|
251 |
-
@echo "π»π’ Opening a bash shell in the
|
252 |
-
@if docker ps | grep
|
253 |
-
docker exec -it $$(docker ps | grep
|
254 |
else \
|
255 |
-
echo "Container
|
256 |
fi
|
257 |
|
258 |
# -------------------------------------------
|
@@ -260,10 +260,10 @@ shell-actions:
|
|
260 |
# -------------------------------------------
|
261 |
shell-db:
|
262 |
@echo "π»π’ Opening a bash shell in the Postgres container ..\n"
|
263 |
-
@if docker ps | grep
|
264 |
-
docker exec -it $$(docker ps | grep
|
265 |
else \
|
266 |
-
echo "Container
|
267 |
fi
|
268 |
|
269 |
# ==================
|
|
|
227 |
# --------------------------------------
|
228 |
shell-api:
|
229 |
@echo "π»π’ Opening a bash shell in the RasaGPT API container ..\n"
|
230 |
+
@if docker ps | grep chat_api > /dev/null; then \
|
231 |
+
docker exec -it $$(docker ps | grep chat_api | tr -d '\n' | awk '{print $$1}') /bin/bash; \
|
232 |
else \
|
233 |
+
echo "Container chat_api is not running"; \
|
234 |
fi
|
235 |
|
236 |
# ---------------------------------------
|
237 |
# Open a bash shell in the Rasa container
|
238 |
# ---------------------------------------
|
239 |
shell-rasa:
|
240 |
+
@echo "π»π’ Opening a bash shell in the chat_rasa_core container ..\n"
|
241 |
+
@if docker ps | grep chat_rasa_core > /dev/null; then \
|
242 |
+
docker exec -it $$(docker ps | grep chat_rasa_core | tr -d '\n' | awk '{print $$1}') /bin/bash; \
|
243 |
else \
|
244 |
+
echo "Container chat_rasa_core is not running"; \
|
245 |
fi
|
246 |
|
247 |
# -----------------------------------------------
|
248 |
# Open a bash shell in the Rasa actions container
|
249 |
# -----------------------------------------------
|
250 |
shell-actions:
|
251 |
+
@echo "π»π’ Opening a bash shell in the chat_rasa_actions container ..\n"
|
252 |
+
@if docker ps | grep chat_rasa_actions > /dev/null; then \
|
253 |
+
docker exec -it $$(docker ps | grep chat_rasa_actions | tr -d '\n' | awk '{print $$1}') /bin/bash; \
|
254 |
else \
|
255 |
+
echo "Container chat_rasa_actions is not running"; \
|
256 |
fi
|
257 |
|
258 |
# -------------------------------------------
|
|
|
260 |
# -------------------------------------------
|
261 |
shell-db:
|
262 |
@echo "π»π’ Opening a bash shell in the Postgres container ..\n"
|
263 |
+
@if docker ps | grep chat_db > /dev/null; then \
|
264 |
+
docker exec -it $$(docker ps | grep chat_db | tr -d '\n' | awk '{print $$1}') /bin/bash; \
|
265 |
else \
|
266 |
+
echo "Container chat_db is not running"; \
|
267 |
fi
|
268 |
|
269 |
# ==================
|