From cea19a32d07cfd182c68116a4e3dc752548680ee Mon Sep 17 00:00:00 2001 From: Sean D Gillespie Date: Mon, 27 Jan 2025 11:25:44 -0500 Subject: [PATCH] chore(nix): Upgrade postgresql@17 --- docker-compose.example.yml | 2 +- docker-compose.yml | 2 +- docker-test.yml | 2 +- flake.nix | 2 +- nix/docker.nix | 4 ++-- nix/nixos/tests/services-basic-test.nix | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.example.yml b/docker-compose.example.yml index b0588462c..7a3a632c2 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -4,7 +4,7 @@ name: cardano-db-sync services: postgres: - image: postgres:14.10-alpine + image: postgres:17.2-alpine environment: - POSTGRES_LOGGING=true - POSTGRES_DB=cexplorer diff --git a/docker-compose.yml b/docker-compose.yml index 503b56cd1..5aea4e991 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: "3.9" services: postgres: - image: postgres:14.10-alpine + image: postgres:17.2-alpine environment: - POSTGRES_LOGGING=true - POSTGRES_DB_FILE=/run/secrets/postgres_db diff --git a/docker-test.yml b/docker-test.yml index 10b10914e..3cc87096a 100644 --- a/docker-test.yml +++ b/docker-test.yml @@ -2,7 +2,7 @@ version: "3.5" services: postgres: - image: postgres:14.10-alpine + image: postgres:17.2-alpine environment: - POSTGRES_LOGGING=true - POSTGRES_DB_FILE=/run/secrets/postgres_db diff --git a/flake.nix b/flake.nix index 71f883421..a8afd28db 100644 --- a/flake.nix +++ b/flake.nix @@ -265,7 +265,7 @@ # Database tests let postgresTest = { - build-tools = [ pkgs.pkgsBuildHost.postgresql_14 ]; + build-tools = [ pkgs.pkgsBuildHost.postgresql_17 ]; inherit preCheck; inherit postCheck; }; diff --git a/nix/docker.nix b/nix/docker.nix index 8c8d6427f..fe20d79a9 100644 --- a/nix/docker.nix +++ b/nix/docker.nix @@ -10,7 +10,7 @@ , bashInteractive, cacert, cardano-cli, cardano-db-sync, cardano-db-tool , cardano-smash-server, coreutils, curl, findutils, getconf, glibcLocales , gnused, gnutar, gzip, jq, iana-etc, iproute, iputils, lib, libidn, libpqxx -, postgresql_14, socat, utillinux +, postgresql_17, socat, utillinux }: let @@ -46,7 +46,7 @@ let iputils # Useful utilities for Linux networking libidn # Library for internationalized domain names libpqxx # A C++ library to access PostgreSQL databases - postgresql_14 # A powerful, open source object-relational database system + postgresql_17 # A powerful, open source object-relational database system socat # Utility for bidirectional data transfer utillinux # System utilities for Linux cardano-cli # tool for interacting with cardano-node diff --git a/nix/nixos/tests/services-basic-test.nix b/nix/nixos/tests/services-basic-test.nix index 1ba761fe2..4ab1b482f 100644 --- a/nix/nixos/tests/services-basic-test.nix +++ b/nix/nixos/tests/services-basic-test.nix @@ -47,7 +47,7 @@ with pkgs; systemd.services.cardano-db-sync.serviceConfig.SupplementaryGroups = "cardano-node"; services.postgresql = { enable = true; - package = postgresql_14; + package = postgresql_17; enableTCPIP = false; ensureDatabases = [ "${config.services.cardano-db-sync.postgres.database}" ]; initialScript = builtins.toFile "enable-pgcrypto.sql" ''