Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mcekovic opened this issue Jan 6, 2020 · 1 comment
Open
Labels

Comments

@mcekovic
Copy link
Owner

@mcekovic mcekovic commented Jan 6, 2020

Docker image mcekovic/uts-database with PostgreSQL database pre-populated with ATP tennis data as of season 2019:

  • Install Docker: https://hub.docker.com/?overlay=onboarding
  • 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
    (first time this is done it 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;
@mcekovic mcekovic added the enhancement label Jan 6, 2020
@mcekovic

This comment has been minimized.

Copy link
Owner Author

@mcekovic mcekovic commented Jan 6, 2020

UTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.