fix proto import in docker
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -22,7 +22,8 @@ RUN python -m grpc_tools.protoc \
|
|||||||
-I/app/proto \
|
-I/app/proto \
|
||||||
--python_out=/app/shared \
|
--python_out=/app/shared \
|
||||||
--grpc_python_out=/app/shared \
|
--grpc_python_out=/app/shared \
|
||||||
/app/proto/metrics.proto
|
/app/proto/metrics.proto \
|
||||||
|
&& sed -i 's/^import metrics_pb2/from shared import metrics_pb2/' /app/shared/metrics_pb2_grpc.py
|
||||||
|
|
||||||
COPY services/aggregator /app/services/aggregator
|
COPY services/aggregator /app/services/aggregator
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ RUN python -m grpc_tools.protoc \
|
|||||||
-I/app/proto \
|
-I/app/proto \
|
||||||
--python_out=/app/shared \
|
--python_out=/app/shared \
|
||||||
--grpc_python_out=/app/shared \
|
--grpc_python_out=/app/shared \
|
||||||
/app/proto/metrics.proto
|
/app/proto/metrics.proto \
|
||||||
|
&& sed -i 's/^import metrics_pb2/from shared import metrics_pb2/' /app/shared/metrics_pb2_grpc.py
|
||||||
|
|
||||||
COPY services/alerts /app/services/alerts
|
COPY services/alerts /app/services/alerts
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ RUN python -m grpc_tools.protoc \
|
|||||||
-I/app/proto \
|
-I/app/proto \
|
||||||
--python_out=/app/shared \
|
--python_out=/app/shared \
|
||||||
--grpc_python_out=/app/shared \
|
--grpc_python_out=/app/shared \
|
||||||
/app/proto/metrics.proto
|
/app/proto/metrics.proto \
|
||||||
|
&& sed -i 's/^import metrics_pb2/from shared import metrics_pb2/' /app/shared/metrics_pb2_grpc.py
|
||||||
|
|
||||||
# Copy service code
|
# Copy service code
|
||||||
COPY services/collector /app/services/collector
|
COPY services/collector /app/services/collector
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ RUN python -m grpc_tools.protoc \
|
|||||||
-I/app/proto \
|
-I/app/proto \
|
||||||
--python_out=/app/shared \
|
--python_out=/app/shared \
|
||||||
--grpc_python_out=/app/shared \
|
--grpc_python_out=/app/shared \
|
||||||
/app/proto/metrics.proto
|
/app/proto/metrics.proto \
|
||||||
|
&& sed -i 's/^import metrics_pb2/from shared import metrics_pb2/' /app/shared/metrics_pb2_grpc.py
|
||||||
|
|
||||||
COPY services/gateway /app/services/gateway
|
COPY services/gateway /app/services/gateway
|
||||||
COPY services/aggregator/__init__.py /app/services/aggregator/__init__.py
|
COPY services/aggregator/__init__.py /app/services/aggregator/__init__.py
|
||||||
|
|||||||
Reference in New Issue
Block a user