Skip to content

Commit ae1ac3f

Browse files
(build): updated Dockerfile and build-conntracker script
1 parent 55e052e commit ae1ac3f

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎core/api/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
1111
&& rm -rf /var/lib/apt/lists/*
1212

1313
RUN cargo install --locked bindgen-cli
14-
RUN cargo install --locked bpf-linker
14+
RUN cargo install --locked bpf-linker@0.10.4
1515
RUN rustup toolchain install nightly --component rust-src
1616

1717
WORKDIR /usr/src/app

‎core/src/components/conntracker/build-conntracker.sh‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ if ! command -v bindgen &> /dev/null; then
1313
export PATH="$HOME/.cargo/bin:$PATH" #add the ./cargo/bin directory to the PATH env variable
1414
fi
1515

16-
bindgen vmlinux.h -o src/bindings.rs --use-core --allowlist-type 'sk_buff' --opaque-type 'ieee80211_sband_iftype_data'
16+
bindgen --use-core --no-layout-tests \
17+
--allowlist-type 'sk_buff' \
18+
vmlinux.h -o src/bindings.rs
1719

1820
cargo +nightly build -Z build-std=core --target bpfel-unknown-none --release --bin conntracker
1921

‎core/src/components/identity/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y \
1515
&& rm -rf /var/lib/apt/lists/*
1616

1717
RUN cargo install --locked bindgen-cli
18-
RUN cargo install --locked bpf-linker
18+
RUN cargo install --locked bpf-linker@0.10.4
1919
RUN rustup toolchain install nightly --component rust-src
2020

2121
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)