Commit ef83ed2
docker: update rust to 1.81 for distroless Dockerfile
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 <[email protected]>1 parent 62ae2f6 commit ef83ed2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments