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 <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-05-27 10:03:19 +01:00
parent 66441e763e
commit a73779dad9

View File

@@ -146,6 +146,15 @@ RUN rm /usr/lib/python3.12/EXTERNALLY-MANAGED \
&& cp -rf ./python /usr/local/bin \ && cp -rf ./python /usr/local/bin \
&& cd .. && rm -rf spdk && 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 # Replace the cargo registry and git dirs with symlinks to the host bind-mount
# paths so that crate downloads are persisted across container invocations. # paths so that crate downloads are persisted across container invocations.
RUN rm -rf "$CARGO_HOME/registry" \ RUN rm -rf "$CARGO_HOME/registry" \