-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·23 lines (18 loc) · 752 Bytes
/
build.sh
File metadata and controls
executable file
·23 lines (18 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
echo "Building Python Observability Data Generator..."
# Generate gRPC Python code from proto files
echo "Generating gRPC Python code from proto files..."
pip install -q grpcio-tools==1.60.0
python -m grpc_tools.protoc \
-I./shared \
--python_out=./shared \
--grpc_python_out=./shared \
./shared/processor.proto
echo "gRPC code generated successfully!"
# Build all Docker images
echo "Building Gateway Service..."
docker build -f gateway-service/Dockerfile -t observability/gateway-service-python:1.0.0 .
echo "Building Processor Service..."
docker build -f processor-service/Dockerfile -t observability/processor-service-python:1.0.0 .
echo "All services built successfully!"
echo "You can now run: docker-compose up"