ALTER public SCHEMA OWNER

This commit is contained in:
Daniel Berteaud 2024-01-10 21:22:12 +01:00
parent 7d36543184
commit 5a7b12ffde
8 changed files with 10 additions and 7 deletions

View File

@ -12,7 +12,7 @@ RUN set -eux &&\
chown root:root ldap2pg &&\
chmod 755 ldap2pg
FROM danielberteaud/alpine:23.12-3
FROM danielberteaud/alpine:24.1-2
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
ENV LANG=fr_FR.utf8 \

View File

@ -27,6 +27,7 @@ _EOSQL
_EOSQL
psql -d ${DB_NAME} <<_EOSQL
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON FUNCTIONS TO pg_database_owner;
ALTER SCHEMA public OWNER TO "${DB_OWNER}";
_EOSQL
if [ -n "${DB_EXTENSIONS}" ]; then
for EXT in $(echo ${DB_EXTENSIONS} | sed -e 's/,/\n/g'); do

View File

@ -1,4 +1,4 @@
FROM danielberteaud/postgres:15.23.12-5
FROM danielberteaud/postgres:15.24.1-1
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
ARG PATRONI_VERSION=3.2.1

View File

@ -1,4 +1,4 @@
FROM danielberteaud/alpine:23.12-3
FROM danielberteaud/alpine:24.1-2
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
ARG PG_FROM= \

View File

@ -1,4 +1,4 @@
FROM danielberteaud/alma:9.23.12-3
FROM danielberteaud/alma:9.24.1-3
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
ENV PG_BASE_DATA=/data/db/

View File

@ -48,7 +48,7 @@ job "postgres-manage" {
user = 1053
config {
image = "danielberteaud/wait-for:23.12-2"
image = "danielberteaud/wait-for:24.1-1"
readonly_rootfs = true
pids_limit = 20
}
@ -74,7 +74,7 @@ job "postgres-manage" {
driver = "docker"
config {
image = "danielberteaud/ldap2pg:6.0-6"
image = "danielberteaud/ldap2pg:6.0-7"
readonly_rootfs = true
pids_limit = 20
}

View File

@ -27,6 +27,7 @@ _EOSQL
_EOSQL
psql -d ${DB_NAME} <<_EOSQL
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON FUNCTIONS TO pg_database_owner;
ALTER SCHEMA public OWNER TO "${DB_OWNER}";
_EOSQL
if [ -n "${DB_EXTENSIONS}" ]; then
for EXT in $(echo ${DB_EXTENSIONS} | sed -e 's/,/\n/g'); do

View File

@ -171,7 +171,7 @@ pg:
# manage can create database, users and sync permissions from LDAP (using ldap2pg)
manage:
# Image to use
image: '[[ .docker.repo ]]ldap2pg:6.0-6'
image: '[[ .docker.repo ]]ldap2pg:6.0-7'
# Resource allocation
resources:
@ -200,6 +200,7 @@ pg:
# owner: erp
# encoding: UTF-8
# locale: fr_FR.utf8
# template: template1
# extensions:
# - uuid-ossp
databases: []