-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-wayland
78 lines (64 loc) · 1.7 KB
/
Dockerfile-wayland
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
68
69
70
71
72
73
74
75
76
77
FROM ubuntu:23.04 AS base
RUN set -e
ENV DEBIAN_FRONTEND=noninteractive
ENV GIT_SSL_NO_VERIFY=1
# Install packages
RUN apt-get -y update
RUN apt-get install -y --no-install-recommends\
python3\
g++\
gcc\
make\
time
FROM base AS base-git
RUN apt-get install -y --no-install-recommends\
cmake\
git
# clone VAMOS
FROM base-git AS vamos
WORKDIR /opt
# Install clang
RUN apt-get install -y --no-install-recommends clang
# Install pkg-config for libinput sources
RUN apt-get install -y --no-install-recommends pkg-config libevdev-dev libinput-dev autoconf automake autotools-dev libtool
RUN apt-get install -y --no-install-recommends libwayland-dev
WORKDIR /
WORKDIR /opt
RUN git clone --depth=1 https://github.com/ista-vamos/vamos -b sttt
#compile VAMOS
#COPY . /opt/vamos/sttt-experiments
#WORKDIR /opt/vamos/sttt-experiments
#RUN git clean -xdf
WORKDIR /tmp
WORKDIR /opt/vamos
RUN git submodule update --init --recursive
RUN cd vamos-sources && make -C ext wldbg
RUN make -j2\
CC=clang CXX=clang++\
BUILD_TYPE=Debug\
DYNAMORIO_SOURCES=OFF\
LLVM_SOURCES=OFF\
LIBINPUT_SOURCES=ON\
WLDBG_SOURCES=ON
# copy and setup the experiments
RUN make sttt-experiments
FROM base as prepare-artifact
RUN mkdir /opt/results
RUN apt-get install -y --no-install-recommends\
python3-matplotlib\
python3-pandas\
python3-seaborn\
weston
RUN apt-get install -y --no-install-recommends\
xauth\
libgl1-mesa-dri\
libwayland-dev
RUN apt-get install -y --no-install-recommends\
xdotool\
evemu-tools\
clang\
x11-xserver-utils
RUN touch /root/.Xauthority
FROM prepare-artifact as artifact
COPY --from=vamos /opt/vamos /opt/vamos
WORKDIR /opt/vamos/sttt-experiments/wayland