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 always to the docker 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
The text was updated successfully, but these errors were encountered:
Docker image mcekovic/uts-database with PostgreSQL database pre-populated with ATP tennis data as of season 2020:
docker run -p 5432:5432 -d --name uts-database mcekovic/uts-database
(this will take a while to download the image with data)
docker exec -it uts-database psql -U tcb
SELECT goat_rank, name, country_id, goat_points FROM player_v ORDER BY goat_points DESC NULLS LAST LIMIT 20;
docker start uts-database
--restart always
to thedocker run ...
command aboveThe text was updated successfully, but these errors were encountered: