Skip to content

Commit

Permalink
Increase range of builder images
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idpwn committed Oct 18, 2023
1 parent 5046b72 commit 42a7668
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/builder-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ jobs:
fail-fast: false
matrix:
pg_version:
- "12"
- "13"
- "14"
- "15"
- "16"
pgrx_version:
- "0.7.4"
- "0.8.0"
Expand All @@ -38,6 +41,7 @@ jobs:
- "0.9.7"
- "0.9.8"
- "0.10.0"
- "0.10.2"
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -77,8 +81,11 @@ jobs:
fail-fast: false
matrix:
pg_version:
- "12"
- "13"
- "14"
- "15"
- "16"
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down
21 changes: 17 additions & 4 deletions cli/images/c-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,23 @@ RUN apt-get update && \
&& curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg > /dev/null \
&& echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& apt-get update \
&& apt-get install -y \
postgresql-${PG_VERSION} postgresql-server-dev-${PG_VERSION} \
pkg-config libssl-dev build-essential libclang-dev clang && \
rm -rf /var/lib/apt/lists/*
&& apt-get install --allow-downgrades -y \
postgresql-client-common=238 \
postgresql-common=238 \
postgresql-server-dev-14 \
postgresql-server-dev-all \
pkg-config \
libssl-dev \
build-essential \
libclang-dev \
clang-14 \
# We need to make sure that only clang-14 is installed in the image before
# it tries to compile pgrx, as having multiple versions cause issues
# per https://github.com/pgcentralfoundation/pgrx/issues/1298
#
# Could instead do this in the pgrx builder image
&& apt-get autoremove -y clang-13 lldb-13 lld-13 clang-15 lldb-15 lld-15 \
&& rm -rf /var/lib/apt/lists/*

USER postgres
WORKDIR /app

0 comments on commit 42a7668

Please sign in to comment.