forked from AMWA-TV/nmos-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (34 loc) · 1.36 KB
/
Dockerfile
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
FROM ubuntu:bionic
WORKDIR /home/nmos-testing
ADD . .
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y wget \
&& wget https://deb.nodesource.com/setup_14.x \
&& chmod 755 setup_14.x \
&& /home/nmos-testing/setup_14.x \
&& apt-get install -y --no-install-recommends \
gcc openssl libssl-dev wget ca-certificates avahi-daemon avahi-utils libnss-mdns libavahi-compat-libdnssd-dev \
python3 python3-pip python3-dev nodejs \
procps ldnsutils libidn11 git coreutils curl bsdmainutils \
&& pip3 install --upgrade pip \
&& pip3 install setuptools wheel \
&& pip3 install -r requirements.txt \
&& mkdir -p /config \
&& cp nmostesting/UserConfig.example.py /config/UserConfig.py \
&& ln -s /config/UserConfig.py nmostesting/UserConfig.py \
&& cd testssl \
&& wget https://github.com/drwetter/testssl.sh/archive/3.0.2.tar.gz \
&& tar -xvzf 3.0.2.tar.gz --strip-components=1 \
&& rm 3.0.2.tar.gz \
&& npm config set unsafe-perm true \
&& npm install -g AMWA-TV/sdpoker#v0.2.0 \
&& rm /home/nmos-testing/setup_14.x \
&& apt-get remove -y wget \
&& apt-get clean -y --no-install-recommends \
&& apt-get autoclean -y --no-install-recommends \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
VOLUME /config
ENTRYPOINT ["python3"]
CMD ["nmos-test.py"]