tennis-crystal-ball icon indicating copy to clipboard operation
tennis-crystal-ball copied to clipboard

Docker image with PostgreSQL database pre-populated with ATP tennis data

Open mcekovic opened this issue 4 years ago • 5 comments

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 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

mcekovic avatar Jan 06 '20 12:01 mcekovic

UTS

mcekovic avatar Jan 06 '20 23:01 mcekovic

Refreshed with 2020 data.

mcekovic avatar Feb 06 '21 19:02 mcekovic

"Ensure PostgreSQL port 5432 is NOT open on your machine (i.e. PostgreSQL is not running if eventually installed)"

How can I check this?

philkim72 avatar Jun 29 '22 00:06 philkim72

Please check if PostgreSQL service is running or not. On Windows, check 'Services' panel. On Linux, check 'systemctl status postgresql'.

On Wed, Jun 29, 2022 at 2:35 AM philkim72 @.***> wrote:

"Ensure PostgreSQL port 5432 is NOT open on your machine (i.e. PostgreSQL is not running if eventually installed)"

How can I check this?

— Reply to this email directly, view it on GitHub https://github.com/mcekovic/tennis-crystal-ball/issues/337#issuecomment-1169414970, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPUVTEFRNYTVE6FZ4RMZC3VROK6NANCNFSM4KDDY2HQ . You are receiving this because you authored the thread.Message ID: @.***>

mcekovic avatar Jun 29 '22 16:06 mcekovic

Hello @mcekovic

Nice work with the database. managed to get it up and running.

When will it be updated with the latest statistics?

Thanks /Mike

azinas1990 avatar Mar 16 '23 19:03 azinas1990