Prepare migration to 17 -> 18
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,18 +1,16 @@
|
||||
FROM ubuntu:noble AS build18
|
||||
RUN apt update && apt upgrade -y && apt install -y wget curl tar build-essential libreadline-dev zlib1g-dev flex bison libicu-dev pkg-config
|
||||
RUN wget https://ftp.postgresql.org/pub/source/v18.0/postgresql-18.0.tar.gz -O pg18.tar.gz
|
||||
RUN tar -xf pg18.tar.gz
|
||||
RUN cd postgresql* && ./configure --prefix=/postgres/18 && make world-bin && make install
|
||||
|
||||
FROM ubuntu:noble AS build17
|
||||
RUN apt update && apt upgrade -y && apt install -y wget curl tar build-essential libreadline-dev zlib1g-dev flex bison libicu-dev pkg-config
|
||||
|
||||
RUN wget https://ftp.postgresql.org/pub/source/v17.2/postgresql-17.2.tar.gz -O pg17.tar.gz
|
||||
RUN wget https://ftp.postgresql.org/pub/source/v17.6/postgresql-17.6.tar.gz -O pg17.tar.gz
|
||||
RUN tar -xf pg17.tar.gz
|
||||
RUN cd postgresql* && ./configure --prefix=/postgres/17 && make world-bin && make install
|
||||
|
||||
|
||||
FROM ubuntu:noble AS build16
|
||||
RUN apt update && apt upgrade -y && apt install -y wget curl tar build-essential libreadline-dev zlib1g-dev flex bison libicu-dev pkg-config
|
||||
|
||||
RUN wget https://ftp.postgresql.org/pub/source/v16.6/postgresql-16.6.tar.gz -O pg16.tar.gz
|
||||
RUN tar -xf pg16.tar.gz
|
||||
RUN cd postgresql* && ./configure --prefix=/postgres/16 && make world-bin && make install
|
||||
|
||||
FROM ubuntu:noble
|
||||
RUN apt update && apt install -y \
|
||||
libicu74 \
|
||||
@@ -27,8 +25,9 @@ ENV LANG=en_US.utf8
|
||||
|
||||
ENV POSTGRES_USER=postgres
|
||||
|
||||
COPY --from=build18 /postgres/18 /postgres/18
|
||||
COPY --from=build17 /postgres/17 /postgres/17
|
||||
COPY --from=build16 /postgres/16 /postgres/16
|
||||
|
||||
|
||||
COPY migrate.sh /migrate.sh
|
||||
RUN chmod +x migrate.sh
|
||||
|
Reference in New Issue
Block a user