Skip to content

Commit d560b0a

Browse files
committed
Fix speedtest CLI installation
1 parent 7fcf49f commit d560b0a

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

Dockerfile

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,24 @@ RUN apt-get update
99
RUN apt-get -q -y install --no-install-recommends apt-utils gnupg1 apt-transport-https dirmngr curl
1010

1111
# Install Speedtest
12-
RUN curl -s https://install.speedtest.net/app/cli/install.deb.sh --output /opt/install.deb.sh
13-
RUN bash /opt/install.deb.sh
14-
RUN apt-get update && apt-get -q -y install speedtest
15-
RUN rm /opt/install.deb.sh
12+
#Option 0 - Install from apt (not working or bad source)
13+
# RUN curl -s https://install.speedtest.net/app/cli/install.deb.sh --output /opt/install.deb.sh
14+
# RUN bash /opt/install.deb.sh
15+
# RUN apt-get update && apt-get -q -y install speedtest
16+
# RUN rm /opt/install.deb.sh
17+
18+
#Option 1 - Install from source
19+
# Download https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_64.tgz
20+
# and place the binary in /usr/bin/speedtest (per https://github.com/breadlysm/SpeedFlux/issues/36#issuecomment-1609954934)
21+
# RUN curl -s https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_64.tgz --output /opt/speedtest.tgz
22+
# RUN tar -xvf /opt/speedtest.tgz -C /opt
23+
# RUN mv /opt/speedtest /usr/bin/speedtest
24+
# RUN rm /opt/speedtest.tgz
25+
26+
#Option 2 - Install from apt
27+
# This is the suggested method from https://www.speedtest.net/apps/cli just dockerized
28+
RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
29+
RUN apt-get -q -y install speedtest
1630

1731
# Clean up
1832
RUN apt-get -q -y autoremove && apt-get -q -y clean

0 commit comments

Comments
 (0)