Skip to content

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

Open

Description

@mcekovic

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

Activity

  1. mcekovic commented on Jan 6, 2020

    @mcekovic
    OwnerAuthor

    UTS

  2. Repository owner deleted a comment from tomeydemarcos on Feb 3, 2021
  3. mcekovic commented on Feb 6, 2021

    @mcekovic
    OwnerAuthor

    Refreshed with 2020 data.

  4. philkim72 commented on Jun 29, 2022

    @philkim72

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

    How can I check this?

  5. mcekovic commented on Jun 29, 2022

    @mcekovic
    OwnerAuthor
  6. azinas1990 commented on Mar 16, 2023

    @azinas1990

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions