Skip to content

Commit

Permalink
Merge branch 'fix_locale' into 'master'
Browse files Browse the repository at this point in the history
FIX locale

See merge request oelmekki/postgres-350d!3
  • Loading branch information
oelmekki committed Oct 6, 2023
2 parents e8f051a + 9bed1e8 commit 34e0c4c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM postgres:15.3
FROM postgres:15.4
MAINTAINER Olivier El Mekki <olivier@el-mekki.com>

RUN apt update && apt install -y build-essential curl postgresql-server-dev-15
RUN curl https://ftp.postgresql.org/pub/source/v15.3/postgresql-15.3.tar.bz2 -o /postgresql-15.3.tar.bz2
RUN cd / && tar xvf postgresql-15.3.tar.bz2
RUN cd /postgresql-15.3/contrib/cube && sed -i 's/#define CUBE_MAX_DIM (100)/#define CUBE_MAX_DIM (350)/' cubedata.h && \
RUN curl https://ftp.postgresql.org/pub/source/v15.4/postgresql-15.4.tar.bz2 -o /postgresql-15.4.tar.bz2
RUN cd / && tar xvf postgresql-15.4.tar.bz2
RUN cd /postgresql-15.4/contrib/cube && sed -i 's/#define CUBE_MAX_DIM (100)/#define CUBE_MAX_DIM (350)/' cubedata.h && \
USE_PGXS=true make && USE_PGXS=true make install
RUN echo -e "\nen_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen

0 comments on commit 34e0c4c

Please sign in to comment.