All checks were successful
/ build-base (bookworm, 16) (push) Successful in 3m41s
/ build-base (bookworm, 15) (push) Successful in 3m33s
/ build-base (bookworm, 17) (push) Successful in 3m38s
/ build-ltss (bookworm, 9cb845e, 15) (push) Successful in 1m52s
/ build-ltss (bookworm, 9cb845e, 17) (push) Successful in 1m58s
/ build-ltss (bookworm, 9cb845e, 16) (push) Successful in 1m59s
/ build-general (bookworm, 1.4.1, v0.8.0, v0.8.0, 17, 3.5.2, 2.19.3) (push) Successful in 4m9s
/ build-general (bookworm, 1.4.1, v0.8.0, v0.8.0, 16, 3.5.2, 2.19.3) (push) Successful in 4m11s
/ build-general (bookworm, 1.4.1, v0.8.0, v0.8.0, 15, 3.5.2, 2.19.3) (push) Successful in 4m13s
79 lines
2.4 KiB
Docker
79 lines
2.4 KiB
Docker
ARG PG_MAJOR_VERSION=17
|
|
ARG DEB_RELEASE=bookworm
|
|
ARG FMT_DATE=2025-05-08
|
|
|
|
ARG BASE_IMAGE_TAG=${PG_MAJOR_VERSION}-${DEB_RELEASE}-${FMT_DATE}
|
|
|
|
FROM gitea.simcop2387.info/simcop2387/postgresql-container-base:${BASE_IMAGE_TAG} AS pgbuilder
|
|
|
|
ARG POSTGIS_VERSION=3.5.2
|
|
ARG PGVECTOR_VERSION=v0.8.0
|
|
ARG TIMESCALEDB_VERSION=2.19.3
|
|
ARG HYPOPG_VERSION=1.4.1
|
|
ARG PG_CRON_VERSION=v1.6.5
|
|
|
|
RUN apt update && apt install -y build-essential flex bison git yacc cmake \
|
|
docbook-xsl-ns \
|
|
gettext \
|
|
libgdal-dev \
|
|
libgeos-dev \
|
|
libjson-c-dev \
|
|
libproj-dev \
|
|
libprotobuf-c-dev \
|
|
libsfcgal-dev \
|
|
libxml2-dev \
|
|
libxml2-utils \
|
|
protobuf-c-compiler \
|
|
xsltproc \
|
|
golang
|
|
|
|
RUN mkdir -p /build/
|
|
RUN git clone https://github.com/timescale/timescaledb --depth=1 --recursive -b ${TIMESCALEDB_VERSION} /build/timescale/
|
|
WORKDIR /build/timescale/
|
|
RUN ./bootstrap
|
|
RUN cd build && make -j && make install
|
|
RUN GOBIN=/usr/local/bin/ go install github.com/timescale/timescaledb-tune/cmd/timescaledb-tune@main
|
|
|
|
# TODO UPDATE PGCONFIG
|
|
# shared_preload_libraries = 'timescaledb'
|
|
|
|
WORKDIR /build
|
|
RUN git clone https://github.com/postgis/postgis --depth=1 --recursive -b ${POSTGIS_VERSION} /build/postgis/
|
|
WORKDIR /build/postgis
|
|
RUN ./autogen.sh && ./configure --enable-lto && make -j && make install
|
|
|
|
WORKDIR /build
|
|
RUN git clone https://github.com/HypoPG/hypopg --depth=1 --recursive -b ${HYPOPG_VERSION} /build/hypopg
|
|
WORKDIR /build/hypopg
|
|
RUN make -j && make install
|
|
|
|
WORKDIR /build
|
|
RUN git clone https://github.com/pgvector/pgvector --depth=1 --recursive -b ${PGVECTOR_VERSION} /build/pgvector
|
|
WORKDIR /build/pgvector
|
|
RUN make -j && make install
|
|
|
|
WORKDIR /build
|
|
RUN git clone https://github.com/citusdata/pg_cron --depth=1 --recursive -b ${PG_CRON_VERSION} /build/pgcron
|
|
WORKDIR /build/pgcron
|
|
RUN make -j && make install
|
|
|
|
FROM gitea.simcop2387.info/simcop2387/postgresql-container-base:${BASE_IMAGE_TAG} AS final
|
|
RUN apt update && apt install -y \
|
|
docbook-xsl-ns \
|
|
gettext \
|
|
libgdal-dev \
|
|
libgeos-dev \
|
|
libjson-c-dev \
|
|
libproj-dev \
|
|
libprotobuf-c-dev \
|
|
libsfcgal-dev \
|
|
libxml2-dev \
|
|
libxml2-utils \
|
|
protobuf-c-compiler \
|
|
xsltproc
|
|
|
|
COPY --from=pgbuilder /usr/share/postgresql/. /usr/share/postgresql/
|
|
COPY --from=pgbuilder /usr/lib/postgresql/. /usr/lib/postgresql/
|
|
COPY --from=pgbuilder /usr/local/. /usr/local/
|
|
|
|
RUN ls -lah /usr/share/postgresql/*/extension/
|