Skip to content

Commit

Permalink
BCDA-8148: Update Postgres versions (#965)
Browse files Browse the repository at this point in the history
Updates Postgres versions in docker files to correctly mirror what's
being used in AWS. (15.5)

## 🎫 Ticket

https://jira.cms.gov/browse/BCDA-8148

## 🛠 Changes

Updated dockerfiles

## ℹ️ Context

Updating dockerfiles in order to properly reflect what's available and
being used within AWS.

<!-- If any of the following security implications apply, this PR must
not be merged without Stephen Walter's approval. Explain in this section
and add @SJWalter11 as a reviewer.
  - Adds a new software dependency or dependencies.
  - Modifies or invalidates one or more of our security controls.
  - Stores or transmits data that was not stored or transmitted before.
- Requires additional review of security implications for other reasons.
-->

## 🧪 Validation

<img width="670" alt="Screenshot 2024-06-28 at 3 46 19 PM"
src="https://github.com/CMSgov/bcda-app/assets/162146803/e0a8ea2d-5047-4a4f-95a9-ae947ed64809">
  • Loading branch information
austincanada committed Jul 1, 2024
1 parent 1bd2134 commit 0d9986b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- ${HOME}/.cache/go-build:/root/.cache/go-build
- ${GOPATH}/pkg/mod:/go/pkg/mod
db-unit-test:
image: postgres:13
image: postgres:15
environment:
- POSTGRES_PASSWORD=toor
- POSTGRES_DB=bcda_test
Expand All @@ -37,7 +37,7 @@ services:
volumes:
- ./db/testing/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
# Pass a flag so we'll log all queries executed on the test db.
command: [ "postgres", "-c", "log_statement=all" ]
command: ["postgres", "-c", "log_statement=all"]
# Spin up a local S3 server for CCLF and Opt Out File import testing
localstack:
image: localstack/localstack:latest
Expand All @@ -47,12 +47,12 @@ services:
- SERVICES=s3,ssm,sts,iam
- DEBUG=1
ports:
- '4566-4583:4566-4583'
- "4566-4583:4566-4583"
volumes:
- "./.localstack_volume:/var/lib/localstack"
- '/var/run/docker.sock:/var/run/docker.sock'
- "/var/run/docker.sock:/var/run/docker.sock"
healthcheck:
test: "curl --silent --fail localstack:4566/_localstack/health | grep -E '\"s3\": \"(available|running)\"'"
test: 'curl --silent --fail localstack:4566/_localstack/health | grep -E ''"s3": "(available|running)"'''
interval: 10s
retries: 12
start_period: 30s
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ version: "3"

services:
queue:
image: postgres:11
image: postgres:15
environment:
- POSTGRES_DB=bcda_queue
- POSTGRES_PASSWORD=toor
ports:
- "5433:5432"
db:
image: postgres:11
image: postgres:15
environment:
- POSTGRES_DB=bcda
- POSTGRES_PASSWORD=toor
Expand All @@ -25,7 +25,7 @@ services:
args:
ENVIRONMENT: development
entrypoint: ""
command: [ "../scripts/watch.sh", "api", "bcda", "start-api" ]
command: ["../scripts/watch.sh", "api", "bcda", "start-api"]
env_file:
- ./shared_files/decrypted/local.env
environment:
Expand All @@ -48,7 +48,7 @@ services:
args:
ENVIRONMENT: development
entrypoint: ""
command: [ "../scripts/watch.sh", "worker", "bcdaworker" ]
command: ["../scripts/watch.sh", "worker", "bcdaworker"]
env_file:
- ./shared_files/decrypted/local.env
environment:
Expand Down

0 comments on commit 0d9986b

Please sign in to comment.