Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-fontugne committed Jun 21, 2024
1 parent 04d94d1 commit c8bad01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit c8bad01

Please sign in to comment.