mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-16 15:29:27 +00:00
Add keylime agent (#1120)
This commit is contained in:
31
packages/utils/keylime-agent/build.yaml
Normal file
31
packages/utils/keylime-agent/build.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
image: ubuntu:24.04
|
||||
package_dir: /package
|
||||
|
||||
env:
|
||||
- PACKAGE_VERSION={{ .Values.version }}
|
||||
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
|
||||
- GITHUB_REPO={{ ( index .Values.labels "github.repo" ) }}
|
||||
|
||||
prelude:
|
||||
- apt-get update && apt-get install -y git libclang-dev libssl-dev libtss2-dev libzmq3-dev pkg-config cargo make
|
||||
- PACKAGE_VERSION=v${PACKAGE_VERSION%\+*} && git clone --depth=1 --branch ${PACKAGE_VERSION} https://github.com/${GITHUB_ORG}/${GITHUB_REPO}
|
||||
|
||||
steps:
|
||||
# build
|
||||
- cd ${GITHUB_REPO} && RELEASE=1 TARGETDIR=/build make all
|
||||
# create target dirs for package
|
||||
- mkdir -p /package/usr/local/bin/
|
||||
- mkdir -p /package/etc/keylime/
|
||||
- mkdir -p /package/etc/systemd/system/
|
||||
- mkdir -p /package/usr/libexec/keylime/
|
||||
# Copy binaries
|
||||
- cp /build/release/keylime_agent /package/usr/local/bin/
|
||||
- cp /build/release/keylime_ima_emulator /package/usr/local/bin/
|
||||
# copy default config
|
||||
- cp ${GITHUB_REPO}/keylime-agent.conf /package/etc/keylime/
|
||||
# copy systemd services
|
||||
- cp ${GITHUB_REPO}/dist/systemd/system/keylime_agent.service /package/etc/systemd/system/
|
||||
- cp ${GITHUB_REPO}/dist/systemd/system/var-lib-keylime-secure.mount /package/etc/systemd/system/
|
||||
# Some kind of needed shim for a bug
|
||||
# Remove when https://github.com/keylime/rust-keylime/issues/325 is fixed
|
||||
- cp ${GITHUB_REPO}/keylime-agent/tests/actions/shim.py /package/usr/libexec/keylime/
|
6
packages/utils/keylime-agent/definition.yaml
Normal file
6
packages/utils/keylime-agent/definition.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
name: "keylime-agent"
|
||||
category: "utils"
|
||||
version: "0.2.6"
|
||||
labels:
|
||||
github.repo: "rust-keylime"
|
||||
github.owner: "keylime"
|
Reference in New Issue
Block a user