Skip to content

Commit

Permalink
refactor: remove minor lines
Browse files Browse the repository at this point in the history
  • Loading branch information
thesarfo committed Jun 24, 2024
1 parent 196a883 commit febf0e3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test-docker.sh
Original file line number Diff line number Diff line change
@@ -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" \
Expand All @@ -14,20 +12,16 @@ 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
echo "Docker container failed to start."
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

Expand Down

0 comments on commit febf0e3

Please sign in to comment.