This application will perform a network speed test (using the speedtest
CLI provided by Ookla (speedtest.net)) and
store the results in a MySQL DB.
docker-compose
- A MySQL DB
- Create a new MySQL DB to use
- Copy
config.example.yaml
toconfig.yaml
- Edit the
config.yaml
file with the desired settings. docker-compose -f docker-compose.yml build
docker-compose up speedtest_to_mysql -d
The below commands to get the basic setup for developing on this repository.
python3 -m venv venv
ln -s venv/bin/activate activate
source activate
pip install --upgrade pip
pip install -r requirements.txt
docker-compose -f docker-compose.yml build
docker-compose -f docker-compose.yml up -d
docker login --username chriscarini
VERSION=0.0.1
IMAGE="chriscarini/speedtest-to-mysql"
# Give the image two tags; one version, and one `latest`.
docker build -t "$IMAGE:latest" -t "$IMAGE:$VERSION" .
docker push "$IMAGE:latest" && docker push "$IMAGE:$VERSION"
The speedtest
CLI is as provided by Ookla (speedtest.net).
You can find installation instructions for your platform here.
This project pulls in this CLI into a docker container for easier use.