File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ WORKDIR /usr/src/app/agent
2121
2222# Copy Cargo manifest and sources
2323COPY . .
24+ COPY common ../common
2425
2526# Fetch dependencies and build release
2627RUN cargo fetch
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ WORKDIR /usr/src/app/identity-service
77# Copy Cargo manifest and sources
88COPY Cargo.toml .
99COPY src ./src
10+ COPY common ../../../common
1011
1112# Fetch dependencies and build release
1213RUN cargo fetch && cargo build --release
Original file line number Diff line number Diff line change 88
99echo " Copying connection tracker binaries"
1010cp -r ../../../target/bpfel-unknown-none/release/conntracker conntracker
11+ cp -r ../../../common common
1112
1213# Run docker build
1314docker build -t identity:0.0.1 .
1415
1516# Cleanup
1617echo " Cleaning building files"
1718rm -rf conntracker
19+ rm -rf common
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ WORKDIR /usr/src/app/metrics
77# Copy Cargo manifest and sources
88COPY Cargo.toml .
99COPY src ./src
10+ COPY common ../../../common
1011
1112# Fetch dependencies and build release
1213RUN cargo fetch && cargo build --release
Original file line number Diff line number Diff line change 88
99echo " Copying metrics_tracer binaries"
1010cp -r ../../../target/bpfel-unknown-none/release/metrics_tracer metrics_tracer
11+ cp -r ../../../common common
1112
1213# Run docker build
1314docker build -t metrics:0.0.1 .
1415
1516# Cleanup
1617echo " Cleaning building files"
1718rm -rf metrics_tracer
19+ rm -rf common
You can’t perform that action at this time.
0 commit comments