Skip to content
Snippets Groups Projects
Commit be439e4d authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Telemetry backend:

- Correct Dockerfile
parent 8b2e451f
No related branches found
No related tags found
2 merge requests!359Release TeraFlowSDN 5.0,!339fix: generated code imports
...@@ -51,7 +51,7 @@ RUN touch __init__.py ...@@ -51,7 +51,7 @@ RUN touch __init__.py
COPY proto/*.proto ./ COPY proto/*.proto ./
RUN python3 -m grpc_tools.protoc -I=. --python_out=. --grpc_python_out=. *.proto RUN python3 -m grpc_tools.protoc -I=. --python_out=. --grpc_python_out=. *.proto
RUN rm *.proto RUN rm *.proto
RUN find . -type f -exec sed -i -E 's/(import\ .*)_pb2/from . \1_pb2/g' {} \; RUN find . -type f -exec sed -i -E 's/^(import\ .*)_pb2/from . \1_pb2/g' {} \;
# Create component sub-folders, get specific Python packages # Create component sub-folders, get specific Python packages
RUN mkdir -p /var/teraflow/telemetry/backend RUN mkdir -p /var/teraflow/telemetry/backend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment