From 79aeabd22acbdf1ee1efa0e2dff29ac284de91a2 Mon Sep 17 00:00:00 2001 From: Tommy Chin <11846217+tommychinjr@users.noreply.github.com> Date: Sat, 4 Nov 2023 15:39:17 -0400 Subject: [PATCH] Added Dockerfile and build instructions --- Dockerfile | 17 +++++++++++++++++ README.md | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f772be2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:bookworm-20231030 as build-stage + +RUN apt-get update && \ + apt-get install -y build-essential cmake xxd libliquid-dev libhackrf-dev libbladerf-dev libuhd-dev libfftw3-dev && \ + rm -rf /var/lib/apt/lists/* + +COPY . /build_dir + +WORKDIR /build_dir + +RUN mkdir build && \ + cd build && \ + cmake .. && \ + make + +FROM scratch AS export-stage +COPY --from=build-stage /build_dir/build/ice9-bluetooth / \ No newline at end of file diff --git a/README.md b/README.md index 1d668e3..96419d6 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,14 @@ on Linux if detected. Use `ice9-bluetooth --install` to install the binary into your local extcap dir (`$HOME/.config/wireshark/extcap`). An `uninstall` target is also provided as a convenience. +## Building with Docker +Run the following command if you need to build the binary from a Docker container + + docker build -o build . + +A `build` folder will appear with the compiled ice9-bluetooth binary. Please note that you will need to +have the relevant libraries (e.g., libhackrf) installed on the intended system to run the binary correctly. + ## Running This tool is primarily meant to be run from within Wireshark. That said,