Compare commits
6 Commits
work
...
paradizelo
Author | SHA1 | Date | |
---|---|---|---|
06da5ef71a | |||
3633dd4787 | |||
03cf5b67c2 | |||
ede0e223ec | |||
6848570758 | |||
056c0b545e |
13
Dockerfile
13
Dockerfile
@@ -1,8 +1,13 @@
|
||||
FROM debian:trixie-slim
|
||||
FROM debian:bullseye-slim
|
||||
#
|
||||
COPY ookla_speedtest_cli.list requirements.txt init.sh /
|
||||
RUN apt update && apt install curl python3 python3-pip iputils-ping -y && pip3 install -r /requirements.txt --break-system-packages && chmod +x /init.sh && curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
|
||||
RUN apt update && apt install speedtest -y && apt clean
|
||||
RUN apt update && apt install curl -y
|
||||
RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
|
||||
RUN apt install python3 python3-pip iputils-ping speedtest -y
|
||||
COPY logspeedtest.py /usr/local/bin/
|
||||
COPY requirements.txt /
|
||||
COPY init.sh /
|
||||
RUN chmod +x /init.sh
|
||||
RUN chmod +x /usr/local/bin/logspeedtest.py
|
||||
RUN pip3 install -r /requirements.txt
|
||||
RUN apt clean
|
||||
CMD ["/init.sh"]
|
@@ -33,4 +33,4 @@ while(True):
|
||||
maxlatency=respjson['ping']['high']
|
||||
result = addinfluxrecord(downspeed,upspeed,pktloss,jitter,latencyavg,minlatency,maxlatency)
|
||||
print(result)
|
||||
time.sleep(300)
|
||||
time.sleep(300)
|
@@ -1,5 +0,0 @@
|
||||
# this file was generated by packagecloud.io for #
|
||||
# the repository at https://packagecloud.io/ookla/speedtest-cli
|
||||
|
||||
deb [signed-by=/etc/apt/keyrings/ookla_speedtest-cli-archive-keyring.gpg] https://packagecloud.io/ookla/speedtest-cli/debian/ bookworm main
|
||||
deb-src [signed-by=/etc/apt/keyrings/ookla_speedtest-cli-archive-keyring.gpg] https://packagecloud.io/ookla/speedtest-cli/debian/ bookworm main
|
Reference in New Issue
Block a user