Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

lycantropos/vizier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vizier

Vizier provides next facilities:

  • movie database,
  • movie recommendation system.

Local development

Setting up

Build Docker image:

docker-compose build

Run Docker container:

docker-compose up

Next commands should be executed in another terminal tab.

Store Postgres container id:

POSTGRES_CONTAINER_ID=$(docker-compose ps -q hydra-postgres)

There are two available options.

  1. Restore Postgres database from plain dump:
cat $PATH_TO_POSTGRES_DUMP | docker exec -i $POSTGRES_CONTAINER_ID psql -U $POSTGRES_USER_NAME $POSTGRES_DB_NAME

where

  • PATH_TO_POSTGRES_DUMP is a path (absolute or relative) to Postgres dump stored at host machine (ex. opt/hydra/dumps/dump.sql),
  • POSTGRES_USER_NAME is a Postgres user name (ex. heracles),
  • POSTGRES_DB_NAME is a target Postgres database name (ex. hydra).
  1. Restore Postgres database from dump created with pg_dump:
docker exec -i $POSTGRES_CONTAINER_ID pg_restore -a -U $POSTGRES_USER_NAME -d $POSTGRES_DB_NAME $PATH_TO_POSTGRES_DUMP

Running

Run Docker container:

docker-compose up

Running for development

Run Docker container with PyCharm Python Remote Debug:

./set-dockerhost.sh docker-compose up

About

movie recommendation service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published