-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-docker-test.cmd
More file actions
34 lines (27 loc) · 869 Bytes
/
run-docker-test.cmd
File metadata and controls
34 lines (27 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
echo 🚀 Starting Docker-based API Performance Tests
echo ==================================================
REM Check if Docker is running
docker info >nul 2>&1
if errorlevel 1 (
echo ❌ Docker is not running. Please start Docker first.
pause
exit /b 1
)
echo ✅ Docker is running
echo 🔨 Building and starting services...
docker-compose -f docker-compose.simple.yml up -d --build
if errorlevel 1 (
echo ❌ Failed to start services. Check Docker logs.
pause
exit /b 1
)
echo ⏳ Waiting for services to be ready...
timeout /t 5 /nobreak >nul
echo 🧪 Running API performance tests...
docker-compose -f docker-compose.simple.yml exec -T test-client node benchmarks/comparison.js
echo ✅ Testing completed!
echo 🧹 Cleaning up...
docker-compose -f docker-compose.simple.yml down
echo Press any key to exit...
pause >nul