From ddddfcb99ef0ffa77bd81d72da87637a13a0b190 Mon Sep 17 00:00:00 2001 From: Nigro Simone Date: Sun, 7 Sep 2025 10:51:44 +0200 Subject: [PATCH 1/2] docs(pg-native): installation Add docker --- packages/pg-native/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/pg-native/README.md b/packages/pg-native/README.md index 37db92908..d5313ed39 100644 --- a/packages/pg-native/README.md +++ b/packages/pg-native/README.md @@ -18,6 +18,16 @@ Some ways I've done it in the past: 2. Install PostgreSQL (`http://www.postgresql.org/download/windows/`) 3. Add your Postgre Installation's `bin` folder to the system path (i.e. `C:\Program Files\PostgreSQL\9.3\bin`). 4. Make sure that both `libpq.dll` and `pg_config.exe` are in that folder. +- On Docker: +```Docker +FROM node:24-slim +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get -y install libpq-dev python3 g++ make \ + && apt-get autoremove -y \ + && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* +``` Afterwards `pg_config` should be in your path. Then... From 67473c5fc5178f184298361b289d0ec3d5762a41 Mon Sep 17 00:00:00 2001 From: Nigro Simone Date: Wed, 10 Sep 2025 05:16:57 +0200 Subject: [PATCH 2/2] docs: Debian-based Node images --- packages/pg-native/README.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/pg-native/README.md b/packages/pg-native/README.md index d5313ed39..c19f300ed 100644 --- a/packages/pg-native/README.md +++ b/packages/pg-native/README.md @@ -11,23 +11,13 @@ You need PostgreSQL client libraries & tools installed. An easy way to check is Some ways I've done it in the past: - On macOS: `brew install libpq` -- On Ubuntu/Debian: `apt-get install libpq-dev g++ make` +- On Ubuntu/Debian and Debian-based Node images: `apt-get install libpq-dev python3 g++ make` - On RHEL/CentOS: `yum install postgresql-devel` - On Windows: 1. Install Visual Studio C++ (successfully built with Express 2010). Express is free. 2. Install PostgreSQL (`http://www.postgresql.org/download/windows/`) 3. Add your Postgre Installation's `bin` folder to the system path (i.e. `C:\Program Files\PostgreSQL\9.3\bin`). 4. Make sure that both `libpq.dll` and `pg_config.exe` are in that folder. -- On Docker: -```Docker -FROM node:24-slim -ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update \ - && apt-get -y install libpq-dev python3 g++ make \ - && apt-get autoremove -y \ - && apt-get clean -y \ - && rm -rf /var/lib/apt/lists/* -``` Afterwards `pg_config` should be in your path. Then...