docker: update rust to 1.81 for distroless Dockerfile#1124
Merged
ansasaki merged 1 commit intokeylime:masterfrom Sep 19, 2025
Merged
docker: update rust to 1.81 for distroless Dockerfile#1124ansasaki merged 1 commit intokeylime:masterfrom
ansasaki merged 1 commit intokeylime:masterfrom
Conversation
When building the keylime_agent docker image, the process fails with the following error: [...] ------ > [builder 12/14] RUN make RELEASE=1 TARGETDIR=target target/release/keylime_agent: 0.164 Package systemd was not found in the pkg-config search path. 0.164 Perhaps you should add the directory containing `systemd.pc' 0.164 to the PKG_CONFIG_PATH environment variable 0.164 No package 'systemd' found 0.164 cargo build --target-dir="target" --release 0.305 error: failed to parse lock file at: /src/rust-keylime/Cargo.lock 0.305 0.305 Caused by: 0.305 lock file version `4` was found, but this version of Cargo does not understand this lock file, perhaps Cargo needs to be updated? 0.305 make: *** [GNUmakefile:27: target/release/keylime_agent] Error 101 ------ Dockerfile.distroless:26 -------------------- 24 | COPY . /src/rust-keylime/ 25 | WORKDIR /src/rust-keylime 26 | >>> RUN make RELEASE=1 TARGETDIR=target target/release/keylime_agent 27 | 28 | # truly just for debugging purposes for the assembly stage -------------------- ERROR: failed to build: failed to solve: process "/bin/sh -c make RELEASE=1 TARGETDIR=target target/release/keylime_agent" did not complete successfully: exit code: 2 Error response from daemon: No such image: keylime_agent:latest-distroless Update the rust docker image to 1.81-bullseye. Signed-off-by: Enrico Bravi <enrico.bravi@polito.it>
ansasaki
approved these changes
Sep 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When building the keylime_agent docker image, the process fails with the following error:
Update the rust docker image to 1.81-bullseye.