Skip to content

Commit

Permalink
chore(nix): Upgrade postgresql@17
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie committed Jan 30, 2025
1 parent ab8f29f commit cea19a3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
# Database tests
let
postgresTest = {
build-tools = [ pkgs.pkgsBuildHost.postgresql_14 ];
build-tools = [ pkgs.pkgsBuildHost.postgresql_17 ];
inherit preCheck;
inherit postCheck;
};
Expand Down
4 changes: 2 additions & 2 deletions nix/docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nix/nixos/tests/services-basic-test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ''
Expand Down

0 comments on commit cea19a3

Please sign in to comment.