-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·38 lines (29 loc) · 925 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·38 lines (29 loc) · 925 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
35
36
37
38
#!/bin/bash
# Build script for Mini Data Cloud
set -e
echo "Building Mini Data Cloud..."
# Clean and compile
echo "1. Cleaning and compiling..."
mvn clean compile
# Generate Protocol Buffer classes
echo "2. Generating Protocol Buffer classes..."
cd minicloud-common
mvn protobuf:compile protobuf:compile-custom
cd ..
# Run tests
echo "3. Running tests..."
mvn test
# Package applications
echo "4. Packaging applications..."
mvn package -DskipTests
# Build Docker images
echo "5. Building Docker images..."
docker build -t minicloud/control-plane:latest -f minicloud-control-plane/Dockerfile minicloud-control-plane/
docker build -t minicloud/worker:latest -f minicloud-worker/Dockerfile minicloud-worker/
echo "Build completed successfully!"
echo ""
echo "To start the development environment:"
echo " docker-compose up -d"
echo ""
echo "To check service health:"
echo " curl http://localhost:8080/actuator/health"