Skip to content

Commit

Permalink
Upgrade Postgres, use Redis from Bitnami
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Sep 26, 2023
1 parent f9c4380 commit 04a64d4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 112 deletions.
4 changes: 0 additions & 4 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
},
baseBranches: ['master', '5.2', '5.1', '5.0', 'release_4'],
'pre-commit': { enabled: true },
'docker-compose': {
enabled: true,
fileMatch: ['(^|/)docker-compose[^/]*\\.yaml$', 'acceptance_tests/tests/docker-compose[^/]*\\.yaml$'],
},
regexManagers: [
{
fileMatch: ['^.pre-commit-config.yaml$'],
Expand Down
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ tests: build_docker_test ## Run the unit tests
acceptance: acceptance-in acceptance-out ## Run the acceptance tests

.PHONY: acceptance-run
acceptance-run: tests build_redis_sentinal ## Start the application used to run the acceptance tests
acceptance-run: tests ## Start the application used to run the acceptance tests
cd acceptance_tests/tests/; docker-compose up --detach db db_slave
cd acceptance_tests/tests/; docker-compose run -T --no-deps app /app/scripts/wait-db
cd acceptance_tests/tests/; docker-compose up --detach
Expand Down Expand Up @@ -63,10 +63,6 @@ build_docker_test:
build_test_app: build_docker
docker build --tag=$(DOCKER_BASE)_test_app --build-arg="GIT_HASH=$(GIT_HASH)" acceptance_tests/app

.PHONY: build_redis_sentinal
build_redis_sentinal:
docker build --tag=$(DOCKER_BASE)-redis-sentinel:6 acceptance_tests/tests/redis/

.PHONY: checks
checks: prospector ## Run the checks

Expand Down
20 changes: 11 additions & 9 deletions acceptance_tests/tests/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ services:
- /app/run_alembic.sh

db: &db
image: camptocamp/postgres:12
image: camptocamp/postgres:14-postgis-3
environment:
POSTGRES_USER: www-data
POSTGRES_PASSWORD: www-data
Expand Down Expand Up @@ -189,22 +189,24 @@ services:
- 9099:9090

redis_master:
image: redis:6
image: bitnami/redis:7.0
environment:
- REDIS_REPLICATION_MODE=master

redis_slave:
image: redis:6
command: redis-server --slaveof redis_master 6379
image: bitnami/redis:7.0
environment:
- REDIS_REPLICATION_MODE=slave
- REDIS_MASTER_HOST=redis_master
depends_on:
- redis_master

# Sentinel
redis:
image: camptocamp/c2cwsgiutils-redis-sentinel:6
image: bitnami/redis-sentinel:7.0
environment:
- MASTER_NAME=mymaster
- QUORUM=1
- MASTER=redis_master
- SLAVES=redis_slave
- REDIS_MASTER_HOST=redis_master
- REDIS_MASTER_SET=mymaster
depends_on:
- redis_master
- redis_slave
Expand Down
7 changes: 0 additions & 7 deletions acceptance_tests/tests/redis/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion acceptance_tests/tests/redis/README

This file was deleted.

86 changes: 0 additions & 86 deletions acceptance_tests/tests/redis/entrypoint

This file was deleted.

0 comments on commit 04a64d4

Please sign in to comment.