-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (29 loc) · 1.31 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
FROM debian:stretch-slim
MAINTAINER Juan Luis Baptiste <[email protected]>
ENV VERSION 0.1.5
RUN apt-get update && \
apt-get install --no-install-recommends -y apt-transport-https cron curl wget \
gnupg2 iputils-ping python-pip python-setuptools rsyslog sendemail sudo telnet net-tools iproute2 zip && \
pip install numpy pingparsing requests statistics supervisor && \
rm -rf /var/lib/apt/lists/* && \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo deb https://deb.nodesource.com/node_8.x bionic main > /etc/apt/sources.list.d/nodesource.list && \
apt update && apt install --no-install-recommends -y nodejs && \
npm install @sitespeed.io/throttle -g && \
pip install --upgrade six && \
rm -rf /var/lib/apt/lists/*
RUN wget https://codeload.github.com/juanluisbaptiste/network-tests/tar.gz/v${VERSION} -O v${VERSION}.tar.gz && \
tar zxvf /v${VERSION}.tar.gz -C /opt && \
rm -f /v${VERSION}.tar.gz
COPY tests/* /
COPY *.sh /
COPY files/docker/etc/supervisord.d/*.ini /etc/supervisord.d/
COPY files/templates/* /templates/
WORKDIR /opt/network-tests-${VERSION}
RUN python setup.py install && \
chmod 755 /*.sh && \
mkdir /var/log/supervisor
WORKDIR /
#ENV PATH=$PATH:/ping:/bandwidth
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["bash"]