mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-04 10:24:37 +00:00
Merge pull request #8012 from arronwy/strip
osbuild: Reduce guest components binary size with strip
This commit is contained in:
@@ -619,6 +619,7 @@ EOF
|
|||||||
make clean
|
make clean
|
||||||
make LIBC=${LIBC} INIT=${AGENT_INIT} SECCOMP=${SECCOMP} AGENT_POLICY=${AGENT_POLICY}
|
make LIBC=${LIBC} INIT=${AGENT_INIT} SECCOMP=${SECCOMP} AGENT_POLICY=${AGENT_POLICY}
|
||||||
make install DESTDIR="${ROOTFS_DIR}" LIBC=${LIBC} INIT=${AGENT_INIT}
|
make install DESTDIR="${ROOTFS_DIR}" LIBC=${LIBC} INIT=${AGENT_INIT}
|
||||||
|
strip ${ROOTFS_DIR}/usr/bin/kata-agent
|
||||||
if [ "${SECCOMP}" == "yes" ]; then
|
if [ "${SECCOMP}" == "yes" ]; then
|
||||||
rm -rf "${libseccomp_install_dir}" "${gperf_install_dir}"
|
rm -rf "${libseccomp_install_dir}" "${gperf_install_dir}"
|
||||||
fi
|
fi
|
||||||
@@ -663,6 +664,7 @@ EOF
|
|||||||
local opa_bin="${ROOTFS_DIR}${opa_bin_dir}/opa"
|
local opa_bin="${ROOTFS_DIR}${opa_bin_dir}/opa"
|
||||||
info "Installing OPA binary to ${opa_bin}"
|
info "Installing OPA binary to ${opa_bin}"
|
||||||
install -D -o root -g root -m 0755 opa -T "${opa_bin}"
|
install -D -o root -g root -m 0755 opa -T "${opa_bin}"
|
||||||
|
strip ${ROOTFS_DIR}${opa_bin_dir}/opa
|
||||||
else
|
else
|
||||||
info "OPA binary already exists in ${opa_bin_dir}"
|
info "OPA binary already exists in ${opa_bin_dir}"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user