-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
112 lines (103 loc) · 2.82 KB
/
Copy pathbuild.bat
File metadata and controls
112 lines (103 loc) · 2.82 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
@echo off
echo ==========================================
echo Building All Docker Containers
echo ==========================================
echo.
REM Build Container 01
echo ================================================
echo Building Container 01 - Javalin
echo ================================================
cd container01-javalin
if exist pom.xml (
call mvn clean package -DskipTests
if errorlevel 1 (
echo ERROR: Maven build failed for Container 01
exit /b 1
)
)
cd ..
echo Container 01 built successfully
echo.
REM Build Container 03
echo ================================================
echo Building Container 03 - EJB MDB
echo ================================================
cd container03-ejb-mdb
if exist pom.xml (
call mvn clean package -DskipTests
if errorlevel 1 (
echo ERROR: Maven build failed for Container 03
exit /b 1
)
)
cd ..
echo Container 03 built successfully
echo.
REM Build Container 04
echo ================================================
echo Building Container 04 - RMI Zoom In
echo ================================================
cd container04-rmi-server-zoomin
if exist pom.xml (
call mvn clean package -DskipTests
if errorlevel 1 (
echo ERROR: Maven build failed for Container 04
exit /b 1
)
)
cd ..
echo Container 04 built successfully
echo.
REM Build Container 05
echo ================================================
echo Building Container 05 - RMI Zoom Out
echo ================================================
cd container05-rmi-server-zoomout
if exist pom.xml (
call mvn clean package -DskipTests
if errorlevel 1 (
echo ERROR: Maven build failed for Container 05
exit /b 1
)
)
cd ..
echo Container 05 built successfully
echo.
REM Build Container 06
echo ================================================
echo Building Container 06 - Node.js
echo ================================================
cd container06-nodejs-db
if exist package.json (
call npm install
if errorlevel 1 (
echo ERROR: npm install failed for Container 06
exit /b 1
)
)
cd ..
echo Container 06 built successfully
echo.
REM Build Docker images
echo ================================================
echo Building Docker Images with Docker Compose
echo ================================================
echo.
docker-compose build --no-cache
if errorlevel 1 (
echo.
echo ==========================================
echo ERROR: Docker build failed
echo ==========================================
exit /b 1
)
echo.
echo ==========================================
echo All containers built successfully!
echo ==========================================
echo.
echo Next steps:
echo run.bat - Start all containers
echo stop.bat - Stop all containers
echo clean.bat - Clean up everything
echo.