From a73779dad95d9e817dca59247c17de9ef03ed351 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 27 May 2026 10:03:19 +0100 Subject: [PATCH] build: Dockerfile: Build virtiofsd Use the same hash that we have been testing with when building from within the integration tests. Signed-off-by: Rob Bradford --- resources/Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/Dockerfile b/resources/Dockerfile index 9c442ba2f..aef21f270 100644 --- a/resources/Dockerfile +++ b/resources/Dockerfile @@ -146,6 +146,15 @@ RUN rm /usr/lib/python3.12/EXTERNALLY-MANAGED \ && cp -rf ./python /usr/local/bin \ && cd .. && rm -rf spdk +# Build virtiofsd at a pinned commit +# hadolint ignore=DL3003 +RUN git clone https://gitlab.com/virtio-fs/virtiofsd.git /tmp/virtiofsd \ + && cd /tmp/virtiofsd \ + && git checkout 0f5865629dc995a3e9d5a73b4eb45bb91740bccb \ + && cargo build --release \ + && cp target/release/virtiofsd /usr/local/bin/virtiofsd \ + && cd / && rm -rf /tmp/virtiofsd + # Replace the cargo registry and git dirs with symlinks to the host bind-mount # paths so that crate downloads are persisted across container invocations. RUN rm -rf "$CARGO_HOME/registry" \