From c8bad01fbb7a851790fcebd3bf013545d3d60f2c Mon Sep 17 00:00:00 2001 From: Romain Fontugne Date: Fri, 21 Jun 2024 14:26:08 +0000 Subject: [PATCH] update readme --- Dockerfile | 2 ++ README.md | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c334fd..b1da0ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,5 +47,7 @@ RUN apt-get update && apt-get install -y \ postgresql-client \ lz4 +USER appuser + # Run the application with docker run --rm internethealthreport/psql-dump configs/ASHegemony_v4_global.json ENTRYPOINT ["python3", "dumpit.py", "--config"] diff --git a/README.md b/README.md index cbc71d5..a62b4a8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # psql-dump Script for creating daily dumps of the database -Should be run from the host running the postgresql database: +Should be run with docker with the following command: ```zsh -python dumpit.py --config configs/ASHegemony_v4_global.json +docker run -e PSQL_HOST=10.0.0.1 -e PSQL_ROLE=django -v /path/to/local/dumps:/dumps internethealthreport/psql-dump configs/country_hegemony_v4.json ``` +