blob: b5da202ff4d8ce20cb792358462b5a1ddf18355a [file] [log] [blame]
FROM docker.io/arm32v7/debian:testing-slim
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt update \
&& apt upgrade -y \
&& apt install -y \
openssh-server \
python2.7 \
python3 \
python3-certifi \
python3-distutils \
ca-certificates \
curl \
libusb-1.0-0 \
bash \
openssl \
libssl-dev \
adb
RUN c_rehash
# Run c_rehash because https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923479
RUN ln -s /usr/lib/libusb-1.0.so.0.1.0 /usr/lib/libusb-1.0.so
RUN ln -s /usr/bin/adb /usr/bin/adb.1.0.35
COPY . /
# Swarming requires a .boto file, even if it's empty.
RUN touch /root/.boto
# Swarming can only detect running inside a Docker container, it can't detect
# containerd, so let's fake it out.
# https://cs.chromium.org/chromium/infra/luci/appengine/swarming/swarming_bot/api/platforms/linux.py?type=cs&q=get_inside_docker&sq=package:chromium&g=0
RUN touch /.dockerenv
CMD ["/usr/bin/test_machine_monitor"]