Skip to content
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
3 changes: 2 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
14,
15,
16,
17
17,
18
]

steps:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG POSTGRES_VERSION=17
ARG POSTGRES_VERSION=18

FROM buildpack-deps:bookworm
ARG POSTGRES_VERSION
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ start-ephemeral-postgres.sh
```

**Options**
- `POSTGRES_VERSION=17`
- `POSTGRES_VERSION=18`
- `POSTGRES_USER=postgres`
- `POSTGRES_PASSWORD=postgres`
- `POSTGRES_HOST_AUTH_METHOD=trust` - could be `scram-sha-256` / `md5` / etc
Expand Down
2 changes: 1 addition & 1 deletion ephemeral-postgres-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

: "${POSTGRES_VERSION:=17}"
: "${POSTGRES_VERSION:=18}"
: "${POSTGRES_USER:=postgres}"
: "${POSTGRES_PASSWORD:=postgres}"
: "${POSTGRES_HOST_AUTH_METHOD:=trust}"
Expand Down
4 changes: 2 additions & 2 deletions start-ephemeral-postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if [ -n "$EPHEMERAL_POSTGRES_DATA_DIR" ]; then
mkdir -p "$EPHEMERAL_POSTGRES_DATA_DIR"
fi

EPHEMERAL_POSTGRES_DOCKER_RUN_ARGS+=" -v $EPHEMERAL_POSTGRES_DATA_DIR:/var/lib/postgresql/data"
EPHEMERAL_POSTGRES_DOCKER_RUN_ARGS+=" -v $EPHEMERAL_POSTGRES_DATA_DIR:/var/lib/postgresql"
echo "Using data directory $EPHEMERAL_POSTGRES_DATA_DIR"

# CoW (eg: with btrs) has a bad time with the frequent small writes from postgres
Expand All @@ -94,7 +94,7 @@ if [ -n "$EPHEMERAL_POSTGRES_DATA_DIR" ]; then
else
if [[ "$OSTYPE" =~ ^linux ]]; then
echo "Using ram disk"
EPHEMERAL_POSTGRES_DOCKER_RUN_ARGS+='--mount type=tmpfs,destination=/var/lib/postgresql/data'
EPHEMERAL_POSTGRES_DOCKER_RUN_ARGS+='--mount type=tmpfs,destination=/var/lib/postgresql'
# Postgres encounters permission issues when using the ram disk unless run as its default linux user
EPHEMERAL_POSTGRES_LINUX_USER=''
fi
Expand Down