mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-11 12:52:23 +00:00
qemu: Build as user
We moved all others artifacts to be build as a user, QEMU should not be the exception Signed-off-by: Zvonko Kaiser <zkaiser@nvidia.com>
This commit is contained in:
parent
1d56fd0308
commit
e604e51b3d
@ -59,9 +59,7 @@ ${container_engine} pull ${container_image} || ("${container_engine}" build \
|
|||||||
# No-op unless PUSH_TO_REGISTRY is exported as "yes"
|
# No-op unless PUSH_TO_REGISTRY is exported as "yes"
|
||||||
push_to_registry "${container_image}")
|
push_to_registry "${container_image}")
|
||||||
|
|
||||||
"${container_engine}" run \
|
"${container_engine}" run --rm -i \
|
||||||
--rm \
|
|
||||||
-i \
|
|
||||||
--env BUILD_SUFFIX="${build_suffix}" \
|
--env BUILD_SUFFIX="${build_suffix}" \
|
||||||
--env PKGVERSION="${PKGVERSION}" \
|
--env PKGVERSION="${PKGVERSION}" \
|
||||||
--env QEMU_DESTDIR="${qemu_destdir}" \
|
--env QEMU_DESTDIR="${qemu_destdir}" \
|
||||||
@ -71,7 +69,9 @@ ${container_engine} pull ${container_image} || ("${container_engine}" build \
|
|||||||
--env HYPERVISOR_NAME="${HYPERVISOR_NAME}" \
|
--env HYPERVISOR_NAME="${HYPERVISOR_NAME}" \
|
||||||
--env QEMU_VERSION_NUM="${qemu_version}" \
|
--env QEMU_VERSION_NUM="${qemu_version}" \
|
||||||
--env ARCH="${ARCH}" \
|
--env ARCH="${ARCH}" \
|
||||||
-v "${repo_root_dir}:/root/kata-containers" \
|
--user "$(id -u)":"$(id -g)" \
|
||||||
|
-w "${PWD}" \
|
||||||
|
-v "${repo_root_dir}:${repo_root_dir}" \
|
||||||
-v "${PWD}":/share "${container_image}" \
|
-v "${PWD}":/share "${container_image}" \
|
||||||
bash -c "/root/kata-containers/tools/packaging/static-build/qemu/build-qemu.sh"
|
bash -c "/root/kata-containers/tools/packaging/static-build/qemu/build-qemu.sh"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user