Skip to content

Commit

Permalink
Merge pull request #10678 from camptocamp/backport/10673-to-2.8
Browse files Browse the repository at this point in the history
[Backport 2.8] Fix database initialization
  • Loading branch information
sbrunner authored Sep 22, 2023
2 parents 091f8d6 + 9d08557 commit f307de0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,6 @@ services:
db:
image: camptocamp/postgres:${POSTGRES_TAG}
environment:
- PGUSER
- PGPASSWORD
- PGDATABASE
- POSTGRES_PASSWORD=${PGPASSWORD}
- POSTGRES_DB=${PGDATABASE}
- POSTGRES_USER=${PGUSER}
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def main() -> None:
"docker-compose",
"exec",
"-T",
"db",
"tools",
"bash",
"-c",
'pg_dump --format=c --dbname="$PGDATABASE"',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main() -> None:
+ [
"exec",
"-T",
"db",
"tools",
"bash",
"-c",
'pg_restore --dbname="$PGDATABASE" ' + " ".join(args.arg),
Expand Down

0 comments on commit f307de0

Please sign in to comment.