Skip to content

Commit

Permalink
Merge pull request #1376 from camptocamp/backport/1373-to-prod-2-7-ad…
Browse files Browse the repository at this point in the history
…vance

[Backport prod-2-7-advance] [Backport prod-2-7] Use Docker Compose version 2
  • Loading branch information
sbrunner authored Aug 7, 2024
2 parents 26c3c25 + 7edaca4 commit 6761c3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- run: cp docker-compose.override.acceptance-test.yaml docker-compose.override.yaml

- name: Build
run: ./build
run: ./build --docker-compose-version-2

- run: make acceptance-init
- run: c2cciutils-docker-logs
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ acceptance-init:
docker compose exec -T tools psql --command='CREATE EXTENSION IF NOT EXISTS postgis'
docker compose exec -T tools psql --command='CREATE EXTENSION IF NOT EXISTS pg_trgm'
docker compose exec -T tools psql --command='CREATE EXTENSION IF NOT EXISTS hstore'
scripts/db-restore --docker-compose-file=docker-compose.yaml --docker-compose-file=docker-compose-db.yaml \
scripts/db-restore --docker-compose-version-2 --docker-compose-file=docker-compose.yaml --docker-compose-file=docker-compose-db.yaml \
--arg=--clean --arg=--if-exists --arg=--verbose data/prod-2-7.dump
docker compose restart geoportal alembic
docker compose exec -T geoportal wait-db
Expand Down
2 changes: 1 addition & 1 deletion ci/docker-compose-check
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import sys
def _main() -> None:
services = [
s.strip()
for s in subprocess.run(["docker-compose", "ps"], check=True, stdout=subprocess.PIPE)
for s in subprocess.run(["docker", "compose", "ps"], check=True, stdout=subprocess.PIPE)
.stdout.decode("utf-8")
.splitlines()
]
Expand Down
1 change: 1 addition & 0 deletions custom/custom/alembic/env.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pyramid bootstrap environment. """

from alembic import context
from custom.models.meta import Base
from pyramid.paster import get_appsettings, setup_logging
Expand Down

0 comments on commit 6761c3d

Please sign in to comment.