diff --git a/test-docker.sh b/test-docker.sh index 5a32ad8..664aec1 100644 --- a/test-docker.sh +++ b/test-docker.sh @@ -1,11 +1,9 @@ #!/bin/bash set -e -# Build the Docker image echo "Building Docker image..." docker build -t culero-api . -# Run the Docker container with dummy environment variables echo "Running Docker container..." docker run --rm -d \ -e DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" \ @@ -14,10 +12,8 @@ docker run --rm -d \ --name culero-api-test \ culero-api -# Wait for the container to start (adjust the sleep time as needed) sleep 10 -# Check if the container is running if [ "$(docker inspect -f '{{.State.Running}}' culero-api-test)" = "true" ]; then echo "Docker container is running successfully." else @@ -25,9 +21,7 @@ else exit 1 fi -# Optional: You can add more tests here, such as checking if the API responds correctly -# Clean up echo "Cleaning up..." docker stop culero-api-test