Skip to content

Commit

Permalink
Remove unnecessary Docker commands and fix formatting issues in clean…
Browse files Browse the repository at this point in the history
…-deploy script.
  • Loading branch information
Cdaprod committed Jun 23, 2024
1 parent a217210 commit de362d4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
29 changes: 27 additions & 2 deletions clean-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,32 @@ docker network prune -f
docker image prune -f

# Bring down any running services and remove orphans
docker-compose -f ~/minio-weaviate/docker-compose.minio-weaviate-python.ts.yaml down --remove-orphans
docker-compose -p ts-services -f docker-compose.minio-weaviate-python.ts.yaml down --remove-orphans

# Bring up the services with a fresh build
docker-compose -f ~/minio-weaviate/docker-compose.minio-weaviate-python.ts.yaml up -d --build
docker-compose -p ts-services -f docker-compose.minio-weaviate-python.ts.yaml up -d --build

echo "Waiting 5 seconds"
sleep 5

echo "Docker Processes"
docker ps

echo "Waiting 5 seconds"
sleep 5

echo "Docker Logs MinIO"
docker logs --tail 20 minio

echo "Waiting 5 seconds"
sleep 5

echo "Docker Logs Weaviate"
docker logs --tail 20 weaviate

echo "Waiting 5 seconds"
sleep 5

echo "Docker Logs Python-App"
docker logs --tail 20 python-app

2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

docker-compose -p ts-services -f docker-compose.minio-weaviate-python.ts.yaml down --remove-orphans
docker-compose -p ts-services -f docker-compose.minio-weaviate-python.ts.yaml up -d --buil
docker-compose -p ts-services -f docker-compose.minio-weaviate-python.ts.yaml up -d --build

0 comments on commit de362d4

Please sign in to comment.