17 lines
1.3 KiB
Docker
17 lines
1.3 KiB
Docker
|
|
# The remote end-to-end test (../remote_e2e.py) on a Linux Wayland desktop: a headless sway in
|
||
|
|
# Docker whose runtime folder (XDG_RUNTIME_DIR) is full, as on a desktop that once crashed when
|
||
|
|
# AnyBot took a screenshot. Brain, relay and devices are the server images' own builds.
|
||
|
|
# On the server, after `docker compose build` in deploy/server, from app/:
|
||
|
|
# docker build -t anybot-wl-e2e deploy/test/wayland
|
||
|
|
# docker run --rm --user 1000:1000 --tmpfs /run/xdg:size=4m,mode=0700,uid=1000,gid=1000 \
|
||
|
|
# -v $PWD/deploy:/e2e/app/deploy:ro anybot-wl-e2e dbus-run-session -- /e2e/app/deploy/test/wayland/run.sh
|
||
|
|
# (add -v <an older anybot>:/old/anybot:ro to see how that one does with the full folder)
|
||
|
|
FROM server-relay:latest AS relay
|
||
|
|
FROM server-anybot:latest
|
||
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends sway foot python3 dbus at-spi2-core fonts-dejavu-core procps && rm -rf /var/lib/apt/lists/*
|
||
|
|
COPY --from=relay /usr/local/bin/anybot-relay /usr/local/bin/anybot-relay
|
||
|
|
RUN mkdir -p /e2e/app/target/release /e2e/app/relay/target/release \
|
||
|
|
&& ln -s /usr/local/bin/anybot /e2e/app/target/release/anybot \
|
||
|
|
&& ln -s /usr/local/bin/anybot-relay /e2e/app/relay/target/release/anybot-relay
|
||
|
|
RUN (getent passwd 1000 >/dev/null || useradd -u 1000 -m tester)
|