Skip to content

Commit

Permalink
Hardcode platform amd64 in postgres-upgrade because thats the only on…
Browse files Browse the repository at this point in the history
…e provided;

this is required for running the setup on Apple chip.
Get ride of  it's not available on all docker compose versions
  • Loading branch information
sadiqkhoja committed Feb 15, 2024
1 parent b7ec93e commit 849db32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.PHONY: for-central-dev
for-central-dev:
docker compose --profile secrets -f docker-compose.yml -f docker-compose.dev.yml up
docker compose --profile central -f docker-compose.yml -f docker-compose.dev.yml up -d

.PHONY: for-enketo-dev
for-enketo-dev:
docker compose --profile secrets -f docker-compose.yml -f docker-compose.dev.yml up
docker compose --profile enketo -f docker-compose.yml -f docker-compose.dev.yml up -d

.PHONE: upgrade-successful
Expand Down
5 changes: 2 additions & 3 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
service:
profiles:
- enketo
depends_on: !override [secrets]
depends_on: !reset []
network_mode: host
environment:
- DB_HOST=localhost
Expand All @@ -48,8 +48,7 @@ services:
network_mode: host
secrets:
profiles:
- central
- enketo
- secrets
environment:
- ENV=DEV
enketo:
Expand Down
2 changes: 1 addition & 1 deletion postgres-upgrade.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# see: https://github.com/tianon/docker-postgres-upgrade/blob/master/9.6-to-14/Dockerfile
FROM tianon/postgres-upgrade:9.6-to-14
FROM --platform=linux/amd64 tianon/postgres-upgrade:9.6-to-14

# This file is required to encourage human validation of the process.
# It's expected it will be provided by the sysadmin performing the upgrade.
Expand Down

0 comments on commit 849db32

Please sign in to comment.