1
0
Fork 0

initial commit

This commit is contained in:
david 2024-01-02 20:32:10 +01:00
commit ff94f8a35c
3 changed files with 35 additions and 0 deletions

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM ubuntu:latest
LABEL Description="This image is based on ubuntu:latest and is used to run the Ookla Speedtest CLI" \
Author="david@socialnerds.org" \
Version="0.1.0" \
License="MIT"
RUN apt-get update && apt-get install -y sudo curl && \
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash && \
apt-get install speedtest
COPY entrypoint.sh /root/
ENTRYPOINT ["/root/entrypoint.sh"]
CMD [""]

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# speedtest-container
Multi-arch container image for the Ookla speedtest CLI. It is based on [ubuntu:latest](https://hub.docker.com/_/ubuntu) and installs the speedtest binary as described in the official Ubuntu [install instructions](https://www.speedtest.net/apps/cli) on the Ookla Speedtest website.
## Usage example
```
# auto-detect nearest server
docker run --rm -it git.socialnerds.org/david/speedtest-container
# specify specific server
docker run --rm -it git.socialnerds.org/david/speedtest-container -s 3744
```
## Related infos
- [List of Ookla speedtest servers](https://gist.github.com/ofou/654efe67e173a6bff5c64ba26c09d058)

3
entrypoint.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
speedtest --accept-license --accept-gdpr $@