Remove pgGraphql from setup (#7716)
## Context This PR removes pg_graphql from the setup. It also updates the local setup documentation accordingly. Note: We removed local setup scripts to align with redis installation, the setup should be much simpler since we don't rely on pg_graphql anymore. ## Test tested locally with docker + mac (brew) setup
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
ARG POSTGRES_VERSION=15
|
||||
ARG SPILO_VERSION=3.2-p1
|
||||
ARG PG_GRAPHQL_VERSION=1.5.6
|
||||
ARG WRAPPERS_VERSION=0.2.0
|
||||
|
||||
# Build the mysql_fdw extension
|
||||
@ -38,10 +37,9 @@ WORKDIR /build/openssl
|
||||
RUN ./config && make && make install
|
||||
|
||||
|
||||
# Extend the Spilo image with the pg_graphql and mysql_fdw extensions
|
||||
# Extend the Spilo image with the mysql_fdw extensions
|
||||
FROM ghcr.io/zalando/spilo-${POSTGRES_VERSION}:${SPILO_VERSION}
|
||||
ARG POSTGRES_VERSION
|
||||
ARG PG_GRAPHQL_VERSION
|
||||
ARG WRAPPERS_VERSION
|
||||
ARG TARGETARCH
|
||||
|
||||
@ -63,14 +61,6 @@ RUN curl -L "https://github.com/supabase/wrappers/releases/download/v${WRAPPERS_
|
||||
COPY --from=build-libssl /usr/local/lib/libssl* /usr/local/lib/libcrypto* /usr/lib/
|
||||
COPY --from=build-libssl /usr/local/lib/engines-1.1 /usr/lib/engines-1.1
|
||||
|
||||
# Copy pg_graphql
|
||||
COPY ./packages/twenty-postgres/linux/${TARGETARCH}/${POSTGRES_VERSION}/pg_graphql/${PG_GRAPHQL_VERSION}/pg_graphql--${PG_GRAPHQL_VERSION}.sql \
|
||||
/usr/share/postgresql/${POSTGRES_VERSION}/extension
|
||||
COPY ./packages/twenty-postgres/linux/${TARGETARCH}/${POSTGRES_VERSION}/pg_graphql/${PG_GRAPHQL_VERSION}/pg_graphql.control \
|
||||
/usr/share/postgresql/${POSTGRES_VERSION}/extension
|
||||
COPY ./packages/twenty-postgres/linux/${TARGETARCH}/${POSTGRES_VERSION}/pg_graphql/${PG_GRAPHQL_VERSION}/pg_graphql.so \
|
||||
/usr/lib/postgresql/${POSTGRES_VERSION}/lib/pg_graphql.so
|
||||
|
||||
# Copy mysql_fdw
|
||||
COPY --from=build-mysql_fdw /mysql_fdw/mysql_fdw.so \
|
||||
/usr/lib/postgresql/${POSTGRES_VERSION}/lib/mysql_fdw.so
|
||||
|
||||
@ -3,7 +3,6 @@ ARG IMAGE_TAG='15.5.0-debian-11-r15'
|
||||
FROM bitnami/postgresql:${IMAGE_TAG}
|
||||
|
||||
ARG PG_MAIN_VERSION=15
|
||||
ARG PG_GRAPHQL_VERSION=1.5.6
|
||||
ARG WRAPPERS_VERSION=0.2.0
|
||||
ARG TARGETARCH
|
||||
|
||||
@ -26,14 +25,6 @@ RUN set -eux; \
|
||||
|
||||
RUN apt update && apt install build-essential git curl default-libmysqlclient-dev -y
|
||||
|
||||
# Install precompiled pg_graphql extensions
|
||||
COPY ./packages/twenty-postgres/linux/${TARGETARCH}/${PG_MAIN_VERSION}/pg_graphql/${PG_GRAPHQL_VERSION}/pg_graphql--${PG_GRAPHQL_VERSION}.sql \
|
||||
/opt/bitnami/postgresql/share/extension/
|
||||
COPY ./packages/twenty-postgres/linux/${TARGETARCH}/${PG_MAIN_VERSION}/pg_graphql/${PG_GRAPHQL_VERSION}/pg_graphql.control \
|
||||
/opt/bitnami/postgresql/share/extension/
|
||||
COPY ./packages/twenty-postgres/linux/${TARGETARCH}/${PG_MAIN_VERSION}/pg_graphql/${PG_GRAPHQL_VERSION}/pg_graphql.so \
|
||||
/opt/bitnami/postgresql/lib/
|
||||
|
||||
# Install precompiled supabase wrappers extensions
|
||||
RUN curl -L "https://github.com/supabase/wrappers/releases/download/v${WRAPPERS_VERSION}/wrappers-v${WRAPPERS_VERSION}-pg${PG_MAIN_VERSION}-${TARGETARCH}-linux-gnu.deb" -o wrappers.deb
|
||||
RUN dpkg --install wrappers.deb
|
||||
|
||||
Reference in New Issue
Block a user