File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,10 +9,24 @@ RUN apt-get update
99RUN 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
1832RUN apt-get -q -y autoremove && apt-get -q -y clean
You can’t perform that action at this time.
0 commit comments