Skip to content

Commit

Permalink
feat: postgresql clients for version 14/15/16/17
Browse files Browse the repository at this point in the history
  • Loading branch information
zackpollard committed Nov 11, 2024
1 parent 892001e commit b307f5e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
24 changes: 16 additions & 8 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ RUN ./configure-apt.sh && \
pkg-config \
wget \
zlib1g \
cpanminus && \
cpanminus \
wget \
postgresql-client-14 \
postgresql-client-15 \
postgresql-client-16 \
postgresql-client-17 && \
apt-get install -t testing --no-install-recommends -yqq \
libdav1d-dev \
libhwy-dev \
libwebp-dev \
libio-compress-brotli-perl \
postgresql-client-17
libio-compress-brotli-perl

COPY bin/* ./

Expand All @@ -62,10 +66,11 @@ WORKDIR /build

COPY bin/build-lock.json bin/configure-apt.sh bin/install-ffmpeg.sh ./

RUN ./configure-apt.sh && \
RUN apt-get update && \
apt-get install curl ca-certificates --no-install-recommends -yqq && \
./configure-apt.sh && \
apt-get update && \
apt-get install --no-install-recommends -yqq \
ca-certificates \
jq \
libde265-0 \
libexif12 \
Expand All @@ -88,15 +93,18 @@ RUN ./configure-apt.sh && \
tini \
wget \
zlib1g \
ocl-icd-libopencl1 && \
ocl-icd-libopencl1 \
postgresql-client-14 \
postgresql-client-15 \
postgresql-client-16 \
postgresql-client-17 && \
./install-ffmpeg.sh && \
apt-get install -t testing --no-install-recommends -yqq \
libio-compress-brotli-perl \
libwebp7 \
libwebpdemux2 \
libwebpmux3 \
libhwy1t64 \
postgresql-client-17 && \
libhwy1t64 && \
if [ $(arch) = "x86_64" ]; then \
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17193.4/intel-igc-core_1.0.17193.4_amd64.deb && \
wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17193.4/intel-igc-opencl_1.0.17193.4_amd64.deb && \
Expand Down
4 changes: 4 additions & 0 deletions server/bin/configure-apt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ Pin: release a=testing
Pin-Priority: 450
EOL

# Setup postgresql repository
install -d /usr/share/postgresql-common/pgdg
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list

0 comments on commit b307f5e

Please sign in to comment.