Skip to content

Commit

Permalink
Use bitnami postgres with fsync off and in-memory data dir
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Oct 2, 2023
1 parent 695b61a commit b5ceb84
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ jobs:

services:
postgres:
image: postgres
image: bitnami/postgresql:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRESQL_PASSWORD: postgres
POSTGRESQL_FSYNC: 'off'
POSTGRESQL_DATA_DIR: /dev/shm/pgdata
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
options: --health-cmd "pg_isready -d postgres -U postgres -p 5432" --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- name: Checkout repository
Expand Down

0 comments on commit b5ceb84

Please sign in to comment.