Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Postgres, use Redis from Bitnami #1960

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
23 changes: 14 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,27 @@ services:
- 9099:9090

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

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
- ALLOW_EMPTY_PASSWORD=yes
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
- ALLOW_EMPTY_PASSWORD=yes
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.