nandangrover commited on
Commit
4c8be6e
Β·
1 Parent(s): 9dfb063

Fix the command for opening shell in Makefile

Browse files
Files changed (1) hide show
  1. Makefile +14 -14
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 api > /dev/null; then \
231
- docker exec -it $$(docker ps | grep api | tr -d '\n' | awk '{print $$1}') /bin/bash; \
232
  else \
233
- echo "Container 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 rasa-core container ..\n"
241
- @if docker ps | grep rasa-core > /dev/null; then \
242
- docker exec -it $$(docker ps | grep rasa-core | tr -d '\n' | awk '{print $$1}') /bin/bash; \
243
  else \
244
- echo "Container 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 rasa-actions container ..\n"
252
- @if docker ps | grep rasa-actions > /dev/null; then \
253
- docker exec -it $$(docker ps | grep rasa-actions | tr -d '\n' | awk '{print $$1}') /bin/bash; \
254
  else \
255
- echo "Container rasa-actions is not running"; \
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 db > /dev/null; then \
264
- docker exec -it $$(docker ps | grep db | tr -d '\n' | awk '{print $$1}') /bin/bash; \
265
  else \
266
- echo "Container db is not running"; \
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
  # ==================