Skip to content

Commit

Permalink
Upgrade to 2.8.1.126
Browse files Browse the repository at this point in the history
  • Loading branch information
Continuous integration committed Aug 6, 2024
1 parent aa7f5cf commit 2f3e10d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CONST_create_template/env.default
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Default values for c2cgeoportal
GEOMAPFISH_VERSION=2.8.1.125
GEOMAPFISH_VERSION=2.8.1.126
GEOMAPFISH_MAIN_VERSION=2.8
GEOMAPFISH_MAIN_MINOR_VERSION=2.8.1
COMPOSE_PROJECT_NAME=geomapfish
Expand Down
11 changes: 7 additions & 4 deletions CONST_create_template/scripts/db-backup
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Copyright (c) 2021-2023, Camptocamp SA
# Copyright (c) 2021-2024, Camptocamp SA
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -47,6 +47,9 @@ def main() -> None:
default=[],
help="Additional pg_dump argument, example: '--arg=--schema=main', may be used multiple times.",
)
parser.add_argument(
"--docker-compose-version-2", action="store_true", help="Use Docker Compose version 2"
)
parser.add_argument("file", help="The file path to backup")
args = parser.parse_args()

Expand Down Expand Up @@ -89,15 +92,15 @@ def main() -> None:
else:
subprocess.run(
[
"docker-compose",
*(["docker", "compose"] if args.docker_compose_version_2 else ["docker-compose"]),
"exec",
"-T",
"tools",
"bash",
"-c",
'pg_dump --format=c --dbname="$PGDATABASE"',
]
+ args.arg,
*args.arg,
],
stdout=file_out,
check=True,
)
Expand Down
11 changes: 7 additions & 4 deletions CONST_create_template/scripts/db-restore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Copyright (c) 2021-2023, Camptocamp SA
# Copyright (c) 2021-2024, Camptocamp SA
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -51,6 +51,9 @@ def main() -> None:
default=[],
help="Additional pg_restore argument, example: '--arg=--schema=main', may be used multiple times.",
)
parser.add_argument(
"--docker-compose-version-2", action="store_true", help="Use Docker Compose version 2"
)
parser.add_argument("file", help="The file path to restore")
args = parser.parse_args()

Expand Down Expand Up @@ -92,9 +95,9 @@ def main() -> None:
)
else:
subprocess.run(
["docker-compose"]
+ ["--file={}".format(f) for f in args.docker_compose_file]
+ [
[
*(["docker", "compose"] if args.docker_compose_version_2 else ["docker-compose"]),
*("--file={}".format(f) for f in args.docker_compose_file),
"exec",
"-T",
"tools",
Expand Down
2 changes: 1 addition & 1 deletion env.default
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Default values for c2cgeoportal
GEOMAPFISH_VERSION=2.8.1.125
GEOMAPFISH_VERSION=2.8.1.126
GEOMAPFISH_MAIN_VERSION=2.8
GEOMAPFISH_MAIN_MINOR_VERSION=2.8.1
COMPOSE_PROJECT_NAME=geomapfish
Expand Down
11 changes: 7 additions & 4 deletions scripts/db-backup
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Copyright (c) 2021-2023, Camptocamp SA
# Copyright (c) 2021-2024, Camptocamp SA
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -47,6 +47,9 @@ def main() -> None:
default=[],
help="Additional pg_dump argument, example: '--arg=--schema=main', may be used multiple times.",
)
parser.add_argument(
"--docker-compose-version-2", action="store_true", help="Use Docker Compose version 2"
)
parser.add_argument("file", help="The file path to backup")
args = parser.parse_args()

Expand Down Expand Up @@ -89,15 +92,15 @@ def main() -> None:
else:
subprocess.run(
[
"docker-compose",
*(["docker", "compose"] if args.docker_compose_version_2 else ["docker-compose"]),
"exec",
"-T",
"tools",
"bash",
"-c",
'pg_dump --format=c --dbname="$PGDATABASE"',
]
+ args.arg,
*args.arg,
],
stdout=file_out,
check=True,
)
Expand Down
11 changes: 7 additions & 4 deletions scripts/db-restore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Copyright (c) 2021-2023, Camptocamp SA
# Copyright (c) 2021-2024, Camptocamp SA
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -51,6 +51,9 @@ def main() -> None:
default=[],
help="Additional pg_restore argument, example: '--arg=--schema=main', may be used multiple times.",
)
parser.add_argument(
"--docker-compose-version-2", action="store_true", help="Use Docker Compose version 2"
)
parser.add_argument("file", help="The file path to restore")
args = parser.parse_args()

Expand Down Expand Up @@ -92,9 +95,9 @@ def main() -> None:
)
else:
subprocess.run(
["docker-compose"]
+ ["--file={}".format(f) for f in args.docker_compose_file]
+ [
[
*(["docker", "compose"] if args.docker_compose_version_2 else ["docker-compose"]),
*("--file={}".format(f) for f in args.docker_compose_file),
"exec",
"-T",
"tools",
Expand Down

0 comments on commit 2f3e10d

Please sign in to comment.