Skip to content

Commit

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

[Backport prod-2-8-advance] Fix acceptences local
  • Loading branch information
sbrunner authored Sep 7, 2023
2 parents 34edef8 + 4b514b6 commit 8ee1f07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt

- run: cp env.acceptance-test env.secrets
- run: sed -i '/^DOCKER_TAG=/d' env.project
- run: touch env.secrets

- name: Checks
run: c2cciutils-checks
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ secrets: ## Decrypt the secrets.tar.bz2.gpg file

.PHONY: acceptance-init
acceptance-init: ## Initialize the acceptance tests
cat env.acceptance-test >> .env
docker volume rm demo_postgresql_data || true
docker-compose --file=docker-compose.yaml --file=docker-compose-db.yaml up -d db tools
docker-compose exec -T tools wait-db
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 \
--arg=--clean --arg=--if-exists --arg=--verbose $(DUMP_FILE)
--arg=--clean --arg=--if-exists --arg=--verbose --arg=--no-privileges --arg=--no-owner $(DUMP_FILE)
docker-compose --file=docker-compose.yaml --file=docker-compose-db.yaml up -d

.PHONY: acceptance
Expand Down
1 change: 0 additions & 1 deletion env.project
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Custom project values
COMPOSE_PROJECT_NAME=demo
DOCKER_BASE=camptocamp/geomapfishdemo
DOCKER_TAG=2.8

PGHOST=pg-gs.camptocamp.com
PGHOST_SLAVE=pg-gs.camptocamp.com
Expand Down
1 change: 0 additions & 1 deletion geoportal/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -970,4 +970,3 @@ runtime_environment:

environment:
- name: VERSION
- name: PGSCHEMA

0 comments on commit 8ee1f07

Please sign in to comment.