From 1f371bd74373fe404649fe57ab6e66d6947abd9b Mon Sep 17 00:00:00 2001 From: Anjana Somathilake Date: Mon, 23 Mar 2020 14:16:12 +0530 Subject: [PATCH] updated readme --- readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/readme.md b/readme.md index 21c71bf..663e229 100644 --- a/readme.md +++ b/readme.md @@ -33,6 +33,14 @@ and add the private key from Firebase Admin SDK. - run `java -jar covid19-1.0.0-SNAPSHOT.jar`. Check if the jar version matches. - NOTE: access logs will get stored in the tomcat folder (tomcat/access/). These logs can be disabled from the application.yml + +### with Docker +- build project using `mvn clean install` +- unzip the `target/covid19-1.0.0-SNAPSHOT.zip` to `target/covid19-1.0.0-SNAPSHOT` +- modify the db url in the application.yml (replace localhose with container name) as below (FIXME: automate with spring profiles) +- `url: jdbc:mysql://db:3306/covid19_db?useUnicode=yes&characterEncoding=UTF-8` +- run ` docker-compose up -d` , make sure that ports 8000 and 3306 are not used in the local machine +- connect to dockerized mysql localhost:3306/covid19_db and execute `covid19.sql` on server (execute `covid19_test.sql` to add test data) ## APIs ----