Added extended cram tests for UPnP port mapping. References: PCF-1998 Signed-off-by: Volodymyr Martysh <v.martysh@inango-systems.com>
73 lines
1.7 KiB
Docker
73 lines
1.7 KiB
Docker
FROM debian:buster-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN \
|
|
apt-get update && \
|
|
apt-get install --yes --no-install-recommends \
|
|
curl \
|
|
etherwake \
|
|
git-core \
|
|
iproute2 \
|
|
iputils-ping \
|
|
jq \
|
|
locales \
|
|
netcat-openbsd \
|
|
nmap \
|
|
ntpdate \
|
|
openssh-client \
|
|
python3 \
|
|
python3-pip \
|
|
sshpass \
|
|
sudo \
|
|
tcpdump \
|
|
xz-utils && \
|
|
apt-get -y autoremove && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
|
ENV LANG=en_US.utf8
|
|
|
|
ENV LABGRID_COMMIT=1ca30de33a1f57eb
|
|
RUN git clone --branch wip/testbed-next https://gitlab.com/prpl-foundation/prplOS/labgrid
|
|
WORKDIR labgrid
|
|
RUN git reset --hard $LABGRID_COMMIT
|
|
|
|
RUN \
|
|
python3 -m pip install -U pip==23.2.1 setuptools==47.3.2 setuptools-scm==7.1.0 && \
|
|
python3 -m pip install -r requirements.txt && \
|
|
python3 -m pip install -r modbus-requirements.txt && \
|
|
python3 setup.py install && \
|
|
rm -fr /labgrid
|
|
|
|
RUN pip3 install \
|
|
cdrouter \
|
|
cram \
|
|
humanize \
|
|
jira \
|
|
'marshmallow<3.0.0' \
|
|
pyjwt \
|
|
async-upnp-client
|
|
|
|
ENV TMATE_VERSION=2.4.0
|
|
ENV TMATE_SHA256SUM=6e503a1a3b0f9117bce6ff7cc30cf61bdc79e9b32d074cf96deb0264e067a60d
|
|
ENV TMATE_DL_URL=https://github.com/tmate-io/tmate/releases/download
|
|
|
|
RUN \
|
|
curl --location --silent \
|
|
"$TMATE_DL_URL/$TMATE_VERSION/tmate-${TMATE_VERSION}-static-linux-amd64.tar.xz" > tmate.tar.xz && \
|
|
sha256sum tmate.tar.xz | grep -q "$TMATE_SHA256SUM" && \
|
|
tar xf tmate.tar.xz --strip-components=1 -C /usr/local/bin && \
|
|
rm tmate.tar.xz
|
|
|
|
RUN \
|
|
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
|
|
useradd -c "OpenWrt Testbed" -m -d /home/testbed -G sudo -s /bin/bash testbed
|
|
|
|
USER testbed
|
|
ENV HOME /home/testbed
|
|
WORKDIR /home/testbed/
|
|
|
|
VOLUME [ "/home/testbed" ]
|