-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
67 lines (55 loc) · 1.37 KB
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM fedora AS builder
WORKDIR /root
RUN sed -e '$ainstall_weak_deps=False' -i /etc/dnf/dnf.conf && \
dnf install -y \
cargo \
clang-devel \
cmake \
dbus-devel \
git \
libcap-devel \
libdrm-devel \
libepoxy-devel \
libva-devel \
make \
mesa-libgbm-devel \
meson \
protobuf-compiler \
wayland-protocols-devel \
;
COPY aemu aemu
RUN cd aemu && \
cmake \
-DAEMU_COMMON_GEN_PKGCONFIG=ON \
-DAEMU_COMMON_BUILD_CONFIG=gfxstream \
-DENABLE_VKCEREAL_TESTS=OFF \
-B build && \
cmake --build build -j && \
cmake --install build
COPY gfxstream gfxstream
RUN cd gfxstream && \
meson setup -Ddefault_library=static build && \
meson install -C build
COPY crosvm crosvm
RUN cd crosvm && \
(sed -i 's/-Werror//' third_party/minigbm/common.mk || true) && \
cargo fetch && \
cargo --offline install \
--path . \
--root /usr/local \
--features audio,balloon,config-file,gdb,gfxstream,gpu,net,pci-hotplug,qcow,registered_events,swap,tokio,usb,vaapi,video-decoder,video-encoder,virgl_renderer,vtpm,wl-dmabuf && \
strip -s /usr/local/bin/crosvm
FROM fedora
RUN sed -e '$ainstall_weak_deps=False' -i /etc/dnf/dnf.conf && \
dnf install -y \
dbus-libs \
libcap \
libdrm \
libepoxy \
libva \
libwayland-client \
mesa-dri-drivers \
mesa-libEGL \
;
COPY --from=builder /usr/local/bin/crosvm /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/crosvm"]