Skip to content

Commit

Permalink
update postgresql 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
blusewang committed Oct 12, 2024
1 parent ff24a3a commit 037dd14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
file: postgres.Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: bluse/postgres:latest,bluse/postgres:16.4
tags: bluse/postgres:latest,bluse/postgres:17.0
5 changes: 1 addition & 4 deletions postgres.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:bullseye-slim
LABEL maintainer="Jeff Wang <jeff@wangjunfeng.com.cn>" \
description="PostgreSQL Custom Edition"

ENV VERSION=16.4
ENV VERSION=17.0

RUN apt update && apt install -y --no-install-recommends locales wget build-essential clang cmake openssl sudo \
pkg-config llvm-dev libicu-dev bison flex gettext libreadline-dev zlib1g-dev libssl-dev libossp-uuid-dev libzstd-dev \
Expand All @@ -19,9 +19,6 @@ RUN apt update && apt install -y --no-install-recommends locales wget build-esse
cd /tmp && git clone https://github.com/jaiminpan/pg_jieba && cd pg_jieba && git submodule update --init --recursive && \
mkdir build && cd build && cmake .. && make && make install && \

wget --no-check-certificate https://github.com/apache/age/releases/download/PG16%2Fv1.5.0-rc0/apache-age-1.5.0-src.tar.gz -O /tmp/age.tar.gz && \
mkdir /tmp/age && tar --strip=1 -xf /tmp/age.tar.gz -C /tmp/age && cd /tmp/age && make && make install && \

addgroup --gid 70 postgres && useradd -s /bin/bash -c postgres -d /data -g 70 -G postgres -m -u 70 -p $(echo 'postgres' | openssl passwd -1 -stdin) postgres && \
echo 'postgres ALL=(ALL) ALL' >> /etc/sudoers && \
cp /usr/share/postgresql/timezonesets/Asia.txt /usr/share/postgresql/timezonesets/Asia && \
Expand Down

0 comments on commit 037dd14

Please sign in to comment.