Skip to content

Commit 32160f0

Browse files
author
LorenzoTettamanti
committed
Fixed building scripts and Dockerfiles after introducing common crate
1 parent 24b71c5 commit 32160f0

5 files changed

Lines changed: 7 additions & 0 deletions

File tree

core/api/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ WORKDIR /usr/src/app/agent
2121

2222
# Copy Cargo manifest and sources
2323
COPY . .
24+
COPY common ../common
2425

2526
# Fetch dependencies and build release
2627
RUN cargo fetch

core/src/components/identity/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ WORKDIR /usr/src/app/identity-service
77
# Copy Cargo manifest and sources
88
COPY Cargo.toml .
99
COPY src ./src
10+
COPY common ../../../common
1011

1112
# Fetch dependencies and build release
1213
RUN cargo fetch && cargo build --release

core/src/components/identity/build-identity.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ popd
88

99
echo "Copying connection tracker binaries"
1010
cp -r ../../../target/bpfel-unknown-none/release/conntracker conntracker
11+
cp -r ../../../common common
1112

1213
# Run docker build
1314
docker build -t identity:0.0.1 .
1415

1516
# Cleanup
1617
echo "Cleaning building files"
1718
rm -rf conntracker
19+
rm -rf common

core/src/components/metrics/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ WORKDIR /usr/src/app/metrics
77
# Copy Cargo manifest and sources
88
COPY Cargo.toml .
99
COPY src ./src
10+
COPY common ../../../common
1011

1112
# Fetch dependencies and build release
1213
RUN cargo fetch && cargo build --release

core/src/components/metrics/build-metrics.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ popd
88

99
echo "Copying metrics_tracer binaries"
1010
cp -r ../../../target/bpfel-unknown-none/release/metrics_tracer metrics_tracer
11+
cp -r ../../../common common
1112

1213
# Run docker build
1314
docker build -t metrics:0.0.1 .
1415

1516
# Cleanup
1617
echo "Cleaning building files"
1718
rm -rf metrics_tracer
19+
rm -rf common

0 commit comments

Comments
 (0)