-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
Docker image mcekovic/uts-database with PostgreSQL database pre-populated with ATP tennis data as of season 2020:
- Install Docker
- Ensure PostgreSQL port 5432 is NOT open on your machine (i.e. PostgreSQL is not running if eventually installed)
- Run UTS database Docker image in a container:
docker run -p 5432:5432 -d --name uts-database mcekovic/uts-database
(this will take a while to download the image with data) - Enter PostgreSQL client command line tool:
docker exec -it uts-database psql -U tcb - Execute SQL commands, like:
SELECT goat_rank, name, country_id, goat_points FROM player_v ORDER BY goat_points DESC NULLS LAST LIMIT 20; - Next time you want Docker container with UTS database running type:
docker start uts-database - If you want Docker container with UTS database to autostart when you start Docker Desktop/Daemon, add
--restart alwaysto thedocker run ...command above - To refer to the UTS database Docker images created at the end of particular season use image URLs with following tags:
- mcekovic/uts-database:asof2020
- mcekovic/uts-database:asof2019