From 2a8178f7879785bfc404425dabd7b1049cad419b Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sat, 23 May 2020 10:51:26 +0200 Subject: [PATCH] Instructions --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 4a7422a..c5b2e72 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,31 @@ # platoo +## Instructions + +Launch docker compose stack: + +``` +sudo docker-compose up +``` + +Now, find the ID of your PostgreSQL database: + +``` +sudo docker ps +``` + +Mine is `1e211e6495ef`. +Now, we will copy our SQL file in the container and open a shell in it + +``` +docker cp platoo.sql 1e211e6495ef:/tmp +docker exec -ti 1e211e6495ef bash +``` + +Now, we will simply restore our file: + +``` +cd /tmp +psql -U platoo platoodb < platoo.sql +``` +