Skip to content

Commit

Permalink
Update of the Go version and tweak to docker-compose to bring back lo…
Browse files Browse the repository at this point in the history
…cal unit tests
  • Loading branch information
mcharest-mcn committed Mar 11, 2024
1 parent c801f55 commit 0cc0bd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testdata/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.hub.docker.com/library/golang:1.18
FROM registry.hub.docker.com/library/golang:1.20
WORKDIR /workspace
RUN apt update && apt install -y postgresql-client

Expand Down
7 changes: 5 additions & 2 deletions testdata/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ services:
postgres:
image: postgres:16
volumes:
- "./data/postgres:/var/lib/postgresql/data"
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=prest-test
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "prest"]
test: ["CMD-SHELL", "pg_isready -U prest"]
interval: 30s
retries: 3
logging:
Expand Down Expand Up @@ -39,3 +39,6 @@ services:
depends_on:
postgres:
condition: service_healthy

volumes:
db_data:

0 comments on commit 0cc0bd4

Please sign in to comment.