retrait de pganon

This commit is contained in:
2025-09-12 22:14:49 +02:00
parent 60553e288e
commit 924ace158c
3 changed files with 16 additions and 34 deletions

View File

@@ -20,8 +20,9 @@ RUN set -eux; \
postgresql-server-dev-17 \ postgresql-server-dev-17 \
; ;
# =============================================================================
# Étape 1 : builder temporaire pour compiler pgTAP # pgTAP
#
FROM debian:trixie AS pgtap FROM debian:trixie AS pgtap
# Installer les outils nécessaires pour compiler pgTAP # Installer les outils nécessaires pour compiler pgTAP
@@ -41,6 +42,7 @@ RUN git clone --depth 1 https://github.com/theory/pgtap.git /usr/src/pgtap && \
# ============================================================================= # =============================================================================
# pgRouting # pgRouting
#
FROM build-pgdev AS pgrouting FROM build-pgdev AS pgrouting
ARG pgrouting_release=3.8.0 ARG pgrouting_release=3.8.0
@@ -84,35 +86,11 @@ RUN tar -xvf /tmp/pg_cron.tar.gz -C /tmp && \
# Build from source # Build from source
WORKDIR /tmp/pg_cron-${pg_cron_release} WORKDIR /tmp/pg_cron-${pg_cron_release}
RUN make -j$(nproc) RUN make
# Create debian package # Create debian package
RUN checkinstall -D --install=no --fstrans=no --backup=no --pakdir=/tmp --nodoc RUN checkinstall -D --install=no --fstrans=no --backup=no --pakdir=/tmp --nodoc
# =============================================================================
# postgresql-anonymizer
#
FROM build-pgdev AS pganon
ARG anon_release=2.3.0
ADD "https://gitlab.com/dalibo/postgresql_anonymizer/-/archive/${anon_release}/postgresql_anonymizer-${anon_release}.tar.gz" \
/tmp/anon.tar.gz
RUN mkdir /tmp/anon && \
tar -xvf /tmp/anon.tar.gz -C /tmp && \
rm -rf /tmp/anon.tar.gz
# edit make to french data
WORKDIR /tmp/postgresql_anonymizer-1.3.2
RUN make
#-j$(nproc)
# Create debian package
RUN checkinstall -D --install=no --fstrans=no --backup=no --pakdir=/tmp \
--nodoc
# ============================================================================= # =============================================================================
# pgVector # pgVector
# #
@@ -128,13 +106,15 @@ RUN tar -xvf /tmp/pgvector.tar.gz -C /tmp && \
# Build from source # Build from source
WORKDIR /tmp/pgvector-${pgvector_release} WORKDIR /tmp/pgvector-${pgvector_release}
RUN make -j$(nproc) RUN make
# Create debian package # Create debian package
RUN checkinstall -D --install=no --fstrans=no --backup=no --pakdir=/tmp \ RUN checkinstall -D --install=no --fstrans=no --backup=no --pakdir=/tmp \
--nodoc --nodoc
# =============================================================================
# Étape 3 : image finale PostgreSQL propre # Étape 3 : image finale PostgreSQL propre
#
FROM postgres:17.6 FROM postgres:17.6
RUN set -eux; \ RUN set -eux; \
@@ -159,7 +139,6 @@ COPY --from=pgtap /pgtap-dist/ /
COPY --from=pgrouting /tmp/*.deb /tmp COPY --from=pgrouting /tmp/*.deb /tmp
COPY --from=pgvector /tmp/*.deb /tmp COPY --from=pgvector /tmp/*.deb /tmp
COPY --from=pganon /tmp/*.deb /tmp
COPY --from=pgcron /tmp/*.deb /tmp COPY --from=pgcron /tmp/*.deb /tmp
RUN set -eux; \ RUN set -eux; \

View File

@@ -4,7 +4,6 @@ create extension if not exists postgis;
create extension if not exists pgrouting; create extension if not exists pgrouting;
create extension if not exists vector; create extension if not exists vector;
create extension if not exists pgcrypto; create extension if not exists pgcrypto;
create extension if not exists pganon;
create table adherent ( create table adherent (
id int primary key, id int primary key,
@@ -52,7 +51,10 @@ create table fournisseur (
fournisseur text not null fournisseur text not null
); );
create table region create table region (
id int primary key, id int primary key,
region text not null region text not null
); );
insert into region values
(1, 'Est'), (2, 'Ouest');

View File

@@ -1,8 +1,9 @@
ALTER TABLE famille alter table famille
ADD gauche int, droite int; add column gauche int,
add column droite int;
-- fonction auxiliaire récursive : reçoit le compteur 'n', retourne le compteur mis à jour -- fonction auxiliaire récursive : reçoit le compteur 'n', retourne le compteur mis à jour
CREATE OR REPLACE FUNCTION set_bounds(p_code INT, n INT) CREATE OR REPLACE FUNCTION set_bounds(p_code text, n INT)
RETURNS INT AS $$ RETURNS INT AS $$
DECLARE DECLARE
child RECORD; child RECORD;