Skip to content

Commit

Permalink
+ pg15, install correct postgresql dev pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
wuputah committed Oct 4, 2024
1 parent c7e44db commit 9c845d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
postgres: ['16', '17']
postgres: ['15', '16', '17']
platform: ['linux/amd64', 'linux/arm64']

steps:
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ FROM postgres_base AS base
### BUILDER
###
FROM base AS builder
ARG POSTGRES_VERSION

RUN apt-get update -qq && \
apt-get install -y \
postgresql-server-dev-${POSTGRES_VERSION} \
build-essential libreadline-dev zlib1g-dev flex bison libxml2-dev libxslt-dev \
libssl-dev libxml2-utils xsltproc pkg-config libc++-dev libc++abi-dev libglib2.0-dev \
libtinfo5 cmake libstdc++-12-dev postgresql-server-dev-16 liblz4-dev ccache && \
libtinfo5 cmake libstdc++-12-dev liblz4-dev ccache && \
rm -rf /var/lib/apt/lists/*

WORKDIR /build
Expand Down
8 changes: 8 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ target "pg_duckdb" {
target = "output"
}

target "pg_duckdb_15" {
inherits = ["pg_duckdb"]

args = {
POSTGRES_VERSION = 15
}
}

target "pg_duckdb_16" {
inherits = ["pg_duckdb"]

Expand Down

0 comments on commit 9c845d9

Please sign in to comment.