Skip to content

Commit

Permalink
docker/fedora/keylime_rust.Dockerfile: add the logic of cloning and c…
Browse files Browse the repository at this point in the history
…ompiling rust-keylime

Obviously, the codes of the agent are located in the rust-keylime repository. However, there
is no logic for cloning and compiling rust-keylime in the corresponding rust dockerfile. So
we need to add it.

Signed-off-by: YiLin.Li <[email protected]>
  • Loading branch information
hustliyilin authored and ansasaki committed May 24, 2023
1 parent 4c8d575 commit 1f32de1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docker/fedora/keylime_rust.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LABEL version="2.0.1" description="Keylime - Bootstrapping and Maintaining Trust

# environment variables
ARG BRANCH=master
ENV KEYLIME_HOME ${HOME}/keylime
ENV RUST_KEYLIME_HOME ${HOME}/rust-keylime
ENV container docker
COPY dbus-policy.conf /etc/dbus-1/system.d/

Expand All @@ -35,6 +35,7 @@ glib2-static \
gnulib \
kmod \
llvm llvm-devel \
libarchive-devel \
libselinux-python3 \
libtool \
libtpms \
Expand All @@ -57,8 +58,10 @@ RUN dnf makecache && \
dnf clean all && \
rm -rf /var/cache/dnf/*

# Move keylime.conf to expected location in /etc/
WORKDIR ${KEYLIME_HOME}
RUN git clone https://github.com/keylime/keylime.git && \
cd keylime && \
cp keylime.conf /etc/keylime.conf
# clone and build rust-keylime
WORKDIR ${RUST_KEYLIME_HOME}
RUN git clone https://github.com/keylime/rust-keylime.git && \
cd rust-keylime && \
make && \
make install && \
cargo clean

0 comments on commit 1f32de1

Please sign in to comment.