mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-02 00:02:01 +00:00
Now kata-agent by default supports both guest pull and host pull abilities, thus we do not need to specify the PULL_TYPE env when building kata-agent. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
26 lines
520 B
Bash
Executable File
26 lines
520 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2023 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
source "${script_dir}/../../scripts/lib.sh"
|
|
|
|
build_agent_from_source() {
|
|
echo "build agent from source"
|
|
|
|
/usr/bin/install_libseccomp.sh /opt /opt
|
|
|
|
cd src/agent
|
|
DESTDIR=${DESTDIR} AGENT_POLICY=${AGENT_POLICY} make
|
|
DESTDIR=${DESTDIR} AGENT_POLICY=${AGENT_POLICY} make install
|
|
}
|
|
|
|
build_agent_from_source "$@"
|