-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
32 lines (27 loc) · 1.15 KB
/
Dockerfile.test
File metadata and controls
32 lines (27 loc) · 1.15 KB
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
FROM archlinux:latest
# Use same mirrors as host
RUN echo -e 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch\nServer = https://mirror.rackspace.com/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
# Install dependencies + multiple terminals (lightweight AND heavy)
RUN pacman -Sy --noconfirm \
xorg-server-xvfb xorg-xwininfo xorg-xprop xdotool \
xterm alacritty kitty mesa-utils \
xorg-xwd netpbm \
libxcb xcb-util-keysyms libxkbcommon libxft fontconfig libx11 \
xorg-fonts-misc 2>&1 || \
pacman -Sy --noconfirm \
xorg-server-xvfb xorg-xwininfo xorg-xprop xdotool \
xterm alacritty kitty mesa-utils \
xorg-xwd netpbm \
libxcb xcb-util-keysyms libxkbcommon libxft fontconfig libx11 \
xorg-fonts-misc && \
yes | pacman -Scc 2>/dev/null || true
# Copy pre-built binaries and test scripts
WORKDIR /zephwm
COPY zig-out/bin/zephwm zig-out/bin/zephwm-msg zig-out/bin/zephwm-bar ./bin/
COPY config/ ./config/
COPY test_in_docker.sh ./
# Create runtime directory for IPC socket
RUN mkdir -p /run/user/0 && chmod 700 /run/user/0
ENV XDG_RUNTIME_DIR=/run/user/0
# Make binaries accessible
ENV PATH="/zephwm/bin:$PATH"