-
Notifications
You must be signed in to change notification settings - Fork 48
/
Dockerfile
41 lines (36 loc) · 1.48 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
39
40
41
FROM ubuntu:focal
WORKDIR /home/nmos-testing
ADD . .
ADD .git .git
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y wget \
&& wget https://deb.nodesource.com/setup_16.x \
&& chmod 755 setup_16.x \
&& /home/nmos-testing/setup_16.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/v3.0.7.tar.gz \
&& tar -xvzf v3.0.7.tar.gz --strip-components=1 \
&& rm v3.0.7.tar.gz \
&& npm config set unsafe-perm true \
&& npm install -g AMWA-TV/sdpoker#v0.3.0 \
&& rm /home/nmos-testing/setup_16.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
# ensure entrypoint script is executable
RUN chmod +x /home/nmos-testing/run_nmos_testing.sh
ENTRYPOINT ["/home/nmos-testing/run_nmos_testing.sh"]