postgresql-containers/ltss/Dockerfile
Ryan Voots 10f9a23e89
Some checks failed
/ build-base (bookworm, 15) (push) Successful in 2m34s
/ build-base (bookworm, 16) (push) Successful in 2m40s
/ build-base (bookworm, 17) (push) Successful in 2m47s
/ build-general (bookworm, 1.4.1, v0.8.0, v0.8.0, 17, 3.5.2, 2.19.3) (push) Has been cancelled
/ build-general (bookworm, 1.4.1, v0.8.0, v0.8.0, 16, 3.5.2, 2.19.3) (push) Has been cancelled
/ build-general (bookworm, 1.4.1, v0.8.0, v0.8.0, 15, 3.5.2, 2.19.3) (push) Has been cancelled
Add influxdb_fdw for making life easier
2025-05-09 09:52:26 -04:00

43 lines
1.5 KiB
Docker

ARG PG_MAJOR_VERSION=17
ARG DEB_RELEASE=bookworm
ARG BASE_IMAGE_TAG=${PG_MAJOR_VERSION}-${DEB_RELEASE}
FROM gitea.simcop2387.info/simcop2387/postgresql-container-general:${BASE_IMAGE_TAG} AS pgbuilder
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
# AKA v2.2.0 according to commits, not released properly with a tag or github release as f 2025-05-10
ARG INFLUXDB_FDW_VERSION=9cb845e
# RUN mkdir -p /build
# WORKDIR /build
# RUN git clone --recursive https://github.com/pgspider/influxdb-cxx /build/influxdb-cxx
# RUN mkdir -p /build/influxdb-cxx/build
# WORKDIR /build/influxdb-cxx/build
# RUN cmake .. -DINFLUXCXX_WITH_BOOST=OFF -DINFLUXCXX_TESTING=OFF && make install
WORKDIR /build
RUN git clone --recursive https://github.com/pgspider/influxdb_fdw /build/influxdb_fdw
WORKDIR /build/influxdb_fdw
RUN go mod init github.com/pgspider/influxdb_fdw && go get github.com/influxdata/influxdb1-client/v2 && go mod tidy
RUN git checkout ${INFLUXDB_FDW_VERSION} && make USE_PGXS=1 GO_CLIENT=1 with_llvm=no install
FROM gitea.simcop2387.info/simcop2387/postgresql-container-general:${BASE_IMAGE_TAG} AS final
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/