basic starts

This commit is contained in:
Ryan Voots 2025-05-07 18:41:17 -04:00
commit b9a9a33b90
2 changed files with 32 additions and 0 deletions

7
base/Dockerfile Normal file
View file

@ -0,0 +1,7 @@
ARG PG_MAJOR_VERSION=17
ARG DEB_RELEASE=bookworm
FROM postgres:${PG_MAJOR_VERSION}-${DEB_RELEASE}
ARG PG_MAJOR_VERSION
RUN apt update && apt full-upgrade -y && apt install -y postgresql-server-dev-${PG_MAJOR_VERSION}

25
general/Dockerfile Normal file
View file

@ -0,0 +1,25 @@
ARG BASE_IMAGE_TAG=latest
FROM gitea.simcop2387.info/simcop2387/pg-container-base:${BASE_IMAGE_TAG} AS pgbuilder
ARG POSTGIS_VERSION=
ARG PGVECTOR_VERSION=
ARG PGXN_VERSION=
ARG TIMESCALEDB_VERSION=2.19.3
ARG HYPOPG_VERSION=
RUN apt update && apt install -y build-essential flex bison git yacc cmake
RUN mkdir -p /build/
RUN git clone https://github.com/timescale/timescaledb -b ${TIMESCALEDB_VERSION} /build/timescale/
WORKDIR /build/timescale/
RUN ./bootstrap
RUN cd build && make -j && make install
# TODO UPDATE PGCONFIG
# shared_preload_libraries = 'timescaledb'
FROM gitea.simcop2387.info/simcop2387/pg-container-base:${BASE_IMAGE_TAG}
COPY --from=pgbuilder /usr/share/postgresql/ /usr/share/posrgresql/
COPY --from=pgbuilder /usr/lib/postgresql/ /usr/lib/postgresql/