Skip to content

Commit ac84f91

Browse files
committed
Updating probe to be based on alpine.
1 parent 98c0805 commit ac84f91

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎.gitmodules‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "probe/fast.com"]
2+
path = probe/fast.com
3+
url = https://github.com/sanderjo/fast.com.git

‎probe/.dockerignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fast.com

‎probe/Dockerfile‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
FROM ubuntu:trusty
2-
MAINTAINER Ryan Creasey <ryan@infern.al>
1+
FROM python:2.7-alpine
32

4-
RUN apt-get update && apt-get install -y curl python python-pip
5-
RUN mkdir /app
3+
RUN pip install influxdb speedtest-cli
64

7-
WORKDIR /app
8-
9-
RUN pip install influxdb speedtest-cli fastdotcom
5+
ENV TEST_INTERVAL 300
106

11-
COPY fast_com.py /app/fast_com.py
12-
COPY probe.py /app/probe.py
13-
COPY probe.sh /app/probe.sh
7+
WORKDIR /app
8+
#COPY fast.com/fast_com.py .
9+
COPY probe.py .
10+
COPY probe.sh .
1411

1512
RUN chmod +x /app/probe.sh
16-
CMD bash -c /app/probe.sh
1713

18-
ENV TEST_INTERVAL 300
14+
CMD ["sh", "/app/probe.sh"]

‎probe/probe.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
while true
44
do
5-
python probe.py -f
5+
python probe.py -s
66
sleep $TEST_INTERVAL
77
done

0 commit comments

Comments
 (0)