initial commit
This commit is contained in:
commit
ff94f8a35c
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
17
README.md
Normal 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
3
entrypoint.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
speedtest --accept-license --accept-gdpr $@
|
Loading…
Reference in New Issue
Block a user