mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-16 07:05:14 +00:00
static-build: patch virtiofsd
Apply qemu/patches/virtiofsd/0001-add-time-to-seccomp.patch to be able to build virtiofsd statically. Fixes: #742. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
This commit is contained in:
parent
f10d48ced1
commit
f3ff9c76a8
@ -27,6 +27,7 @@ RUN apt-get install -y \
|
|||||||
libpixman-1-dev \
|
libpixman-1-dev \
|
||||||
libseccomp-dev \
|
libseccomp-dev \
|
||||||
libtool \
|
libtool \
|
||||||
|
patch \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
python \
|
python \
|
||||||
@ -38,6 +39,8 @@ RUN apt-get install -y \
|
|||||||
|
|
||||||
RUN cd .. && git clone "${QEMU_VIRTIOFS_REPO}" qemu-virtiofs
|
RUN cd .. && git clone "${QEMU_VIRTIOFS_REPO}" qemu-virtiofs
|
||||||
RUN git checkout "${QEMU_VIRTIOFS_TAG}"
|
RUN git checkout "${QEMU_VIRTIOFS_TAG}"
|
||||||
|
ADD qemu/patches/virtiofsd/0001-add-time-to-seccomp.patch /root/0001-add-time-to-seccomp.patch
|
||||||
|
RUN patch -p1 < /root/0001-add-time-to-seccomp.patch
|
||||||
ADD scripts/configure-hypervisor.sh /root/configure-hypervisor.sh
|
ADD scripts/configure-hypervisor.sh /root/configure-hypervisor.sh
|
||||||
RUN PREFIX="${PREFIX}" /root/configure-hypervisor.sh -s kata-qemu | sed -e 's|--enable-rbd||g' -e 's|--disable-seccomp||g' | xargs ./configure \
|
RUN PREFIX="${PREFIX}" /root/configure-hypervisor.sh -s kata-qemu | sed -e 's|--enable-rbd||g' -e 's|--disable-seccomp||g' | xargs ./configure \
|
||||||
--with-pkgversion=kata-static
|
--with-pkgversion=kata-static
|
||||||
|
Loading…
Reference in New Issue
Block a user