Skip to content

Commit

Permalink
feat: anon
Browse files Browse the repository at this point in the history
  • Loading branch information
elvizlai committed Jan 16, 2025
1 parent 245bc32 commit 592ca9d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pg/Dockerfile-15
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ARG SP_VAULT=0.2.9
ARG ZOMBODB=3000.2.7
ARG PARADEDB=0.14.0
ARG PG_ANALYTICS=0.3.0
ARG PG_ANON=2.0.0
ARG PGVECTOR=0.8.0
ARG PG_CRON=1.6.4
ARG PG_IVM=1.9
Expand Down Expand Up @@ -151,6 +152,13 @@ RUN sudo apt-get install -y --no-install-recommends \
&& git clone --branch v${PG_ANALYTICS} https://github.com/paradedb/pg_analytics /tmp/pg_analytics \
&& cd /tmp/pg_analytics \
&& sudo bash -c 'CARGO_HOME=/tmp/cargo RUSTUP_HOME=/tmp/rustup PATH=$CARGO_HOME/bin:$PATH PGRX_HOME=/var/lib/postgresql/.pgrx cargo pgrx install --release' \
# pg_anonymizer https://gitlab.com/dalibo/postgresql_anonymizer
&& git clone --branch ${PG_ANON} https://gitlab.com/dalibo/postgresql_anonymizer.git /tmp/pg_anonymizer \
&& cd /tmp/pg_anonymizer \
&& cargo install -j$(nproc) cargo-pgrx --version $(cat Cargo.toml | grep "pgrx = " | sed 's/pgrx = //g' | sed 's/"//g') \
&& PGRX_HOME=/var/lib/postgresql/.pgrx cargo pgrx init "--pg${PG_MAJOR}=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config" \
&& PGRX_HOME=/var/lib/postgresql/.pgrx make extension PG_CONFIG=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config PGVER="pg${PG_MAJOR}" \
&& sudo bash -c 'CARGO_HOME=/tmp/cargo RUSTUP_HOME=/tmp/rustup PATH=$CARGO_HOME/bin:$PATH PGRX_HOME=/var/lib/postgresql/.pgrx PG_MAJOR=15 make install PG_CONFIG=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config PGVER="pg${PG_MAJOR}"' \
# vector https://github.com/pgvector/pgvector/tags
&& git clone -b v${PGVECTOR} https://github.com/pgvector/pgvector /tmp/pgvector \
&& cd /tmp/pgvector \
Expand Down
9 changes: 9 additions & 0 deletions pg/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export SP_VAULT=0.2.9
export ZOMBODB=3000.2.7
export PARADEDB=0.14.0
export PG_ANALYTICS=0.3.0
export PG_ANON=2.0.0
export PGVECTOR=0.8.0
export PG_CRON=1.6.4
export PG_IVM=1.9
Expand Down Expand Up @@ -87,6 +88,14 @@ cd /tmp/pg_analytics
cargo pgrx install --release
git clone --branch ${PG_ANON} https://gitlab.com/dalibo/postgresql_anonymizer.git /tmp/pg_anonymizer
cd /tmp/pg_anonymizer
cargo install -j$(nproc) cargo-pgrx --version $(cat Cargo.toml | grep "pgrx = " | sed 's/pgrx = //g' | sed 's/"//g')
PGRX_HOME=/var/lib/postgresql/.pgrx cargo pgrx init "--pg${PG_MAJOR}=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config"
PGRX_HOME=/var/lib/postgresql/.pgrx make extension PG_CONFIG=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config PGVER="pg${PG_MAJOR}"
PGRX_HOME=/var/lib/postgresql/.pgrx make install PG_CONFIG=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config PGVER="pg${PG_MAJOR}"
cp /usr/include/postgresql/15/server/pg_config.h /usr/include/postgresql/
# repmgr https://github.com/EnterpriseDB/repmgr
Expand Down

0 comments on commit 592ca9d

Please sign in to comment.