Skip to content

Commit 78f3eea

Browse files
authored
Merge pull request #1815 from camptocamp/interrupted-upgrade-prod-2-10-master
Upgrade failed
2 parents c4a1345 + e028a09 commit 78f3eea

28 files changed

Lines changed: 432 additions & 593 deletions

CONST_CHANGELOG.txt

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
This file includes migration steps for each release of c2cgeoportal.
22

3+
==============
4+
Version 2.10.0
5+
==============
6+
7+
Information to know before starting the upgrade
8+
===============================================
9+
10+
1. The Binary Terrain (BT/VTP .bt 1.3) format is no longer supported by GDAL.
11+
The raster files should be in a file readable by GDAL/OGR, such as GeoTIFF.
12+
To translate the BT files to GeoTIFF, you can use the `gdal_translate` command:
13+
```bash
14+
gdal_translate -of GTiff dem.bt dem.tiff
15+
```
16+
17+
2. The Restriction area becomes a multipolygon and the `ST_Contains`
18+
doesn't match with invalid geometries as before (impact also editing).
19+
20+
Information
21+
===========
22+
23+
Changes to apply
24+
================
25+
26+
327
=============
428
Version 2.9.0
529
=============
@@ -95,13 +119,6 @@ Changes to apply
95119
Controller.$inject = ['$scope', '$injector'];
96120
```
97121

98-
4. The OGC Server 'source for image/png' is renamed to 'MapServer' and
99-
'source for image/jpeg' is renamed to 'MapServer_JPEG'.
100-
This is done to be able to add them in the URL path, for OGC API compatibility.
101-
If you use one of them in the `vars.yaml` you have to update them. Concerned variables are:
102-
`main_ogc_server`, `api.ogc_server`, `tinyowsproxy.ogc_server`,
103-
`interfaces_config.<interface>.routes.ngeoPermalinkOgcserverUrl.params.ogcserver`.
104-
105122

106123
=============
107124
Version 2.8.0

CONST_create_template/.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- uses: actions/setup-python@v5
3030
with:
31-
python-version: '3.11'
31+
python-version: '3.13'
3232
- run: python3 -m pip install --requirement=ci/requirements.txt
3333
- name: Environment information
3434
run: c2cciutils-env

CONST_create_template/.github/workflows/rebuild.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
branch:
18-
- int-2-9
19-
- prod-2-9
18+
- int-2-10
19+
- prod-2-10
2020

2121
steps:
2222
- uses: actions/checkout@v4
@@ -32,7 +32,7 @@ jobs:
3232

3333
- uses: actions/setup-python@v5
3434
with:
35-
python-version: '3.11'
35+
python-version: '3.13'
3636
- run: python3 -m pip install --requirement=ci/requirements.txt
3737
- name: Environment information
3838
run: c2cciutils-env

CONST_create_template/.github/workflows/update_l10n.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
include:
18-
- branch: int-2-9
18+
- branch: int-2-10
1919
base_url: int.customer.ch
20-
- branch: prod-2-9
20+
- branch: prod-2-10
2121
base_url: prod.customer.ch
2222

2323
steps:

CONST_create_template/.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ repos:
2626
hooks:
2727
- id: autoflake
2828
- repo: https://github.com/PyCQA/isort
29-
rev: 5.13.2
29+
rev: 6.0.1
3030
hooks:
3131
- id: isort
3232
- repo: https://github.com/psf/black
33-
rev: 24.10.0
33+
rev: 25.1.0
3434
hooks:
3535
- id: black

CONST_create_template/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG GEOMAPFISH_VERSION
22
ARG GEOMAPFISH_MAIN_MINOR_VERSION
33

4-
FROM camptocamp/geomapfish-tools:${GEOMAPFISH_VERSION} AS builder
4+
FROM ghcr.io/camptocamp/geomapfish-tools:${GEOMAPFISH_VERSION} AS builder
55

66
ENV VARS_FILE=vars.yaml
77
ENV CONFIG_VARS sqlalchemy.url sqlalchemy.pool_recycle sqlalchemy.pool_size sqlalchemy.max_overflow \
@@ -39,7 +39,7 @@ RUN \
3939

4040
###############################################################################
4141

42-
FROM camptocamp/geomapfish-config:${GEOMAPFISH_MAIN_MINOR_VERSION} AS gmf_config
42+
FROM ghcr.io/camptocamp/geomapfish-config:${GEOMAPFISH_MAIN_MINOR_VERSION} AS gmf_config
4343

4444
ARG PGSCHEMA
4545
ENV PGSCHEMA=$PGSCHEMA

CONST_create_template/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ checks: prospector eslint ## Runs the checks
2828
.PHONY: prospector
2929
prospector: ## Runs the Prospector checks
3030
docker compose run --entrypoint= --no-deps --rm --volume=$(CURDIR)/geoportal:/app geoportal \
31-
prospector --output-format=pylint --die-on-tool-error
31+
prospector --without=ruff --output-format=pylint --die-on-tool-error
3232

3333
.PHONY: eslint
3434
eslint: ## Runs the eslint checks

CONST_create_template/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
demo_geomapfish project
22
===================
33

4-
Read the `Documentation <https://camptocamp.github.io/c2cgeoportal/2.9/>`_
4+
Read the `Documentation <https://camptocamp.github.io/c2cgeoportal/2.10/>`_
55

66
Checkout
77
--------

CONST_create_template/build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def run(
3737
def main() -> None:
3838
parser = argparse.ArgumentParser(description="Build the project")
3939
parser.add_argument("--verbose", action="store_true", help="Display the Docker build commands")
40+
parser.add_argument("--no-cache", action="store_true", help="Disable docker cache on build")
4041
parser.add_argument(
4142
"--dry-run", action="store_true", help="Display the docker build commands without executing them"
4243
)
@@ -133,6 +134,12 @@ def main() -> None:
133134
if not args.env:
134135
docker_compose_build_cmd = [*docker_compose_command, "build"]
135136

137+
if args.no_cache:
138+
docker_compose_build_cmd.append("--no-cache")
139+
140+
if args.verbose:
141+
docker_compose_build_cmd.append("--progress=plain")
142+
136143
if not args.no_pull:
137144
# Pull all the images
138145
if not args.service:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
c2cciutils[checks,publish]==1.7.3
2-
pre-commit==4.2.0
2+
pre-commit==4.3.0

0 commit comments

Comments
 (0)