39 lines
895 B
Batchfile
39 lines
895 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
echo 🐳 Testing Docker Builds
|
|
echo =======================
|
|
|
|
echo [INFO] Building backend container...
|
|
docker build -t drone-backend ./server
|
|
if %errorlevel% neq 0 (
|
|
echo [ERROR] Backend build failed
|
|
exit /b 1
|
|
)
|
|
echo [SUCCESS] Backend build completed
|
|
|
|
echo [INFO] Building frontend container...
|
|
docker build -t drone-frontend ./client
|
|
if %errorlevel% neq 0 (
|
|
echo [ERROR] Frontend build failed
|
|
exit /b 1
|
|
)
|
|
echo [SUCCESS] Frontend build completed
|
|
|
|
echo [INFO] Building simulator container...
|
|
docker build -f docker/simulator/Dockerfile -t drone-simulator .
|
|
if %errorlevel% neq 0 (
|
|
echo [ERROR] Simulator build failed
|
|
exit /b 1
|
|
)
|
|
echo [SUCCESS] Simulator build completed
|
|
|
|
echo [SUCCESS] All builds completed successfully!
|
|
echo.
|
|
echo You can now run:
|
|
echo docker-compose up -d
|
|
echo or
|
|
echo docker-compose -f docker-compose.simple.yml up -d
|
|
|
|
pause
|