Browse Source

new: [postgres] add default ``less`` pager to inner ``psql``

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
new-mailhog-charms
Valentin Lab 3 years ago
parent
commit
ef3eab72f6
  1. 8
      postgres/build/Dockerfile

8
postgres/build/Dockerfile

@ -39,3 +39,11 @@ RUN apk add /tmp/mbuffer-2018*.apk --allow-untrusted
RUN apk add gzip RUN apk add gzip
RUN ln -sf /usr/bin/mbuffer /usr/bin/buffer RUN ln -sf /usr/bin/mbuffer /usr/bin/buffer
##
## Install less capability
##
RUN apk add less && \
echo "\setenv PAGER 'less -SFX'" >> /var/lib/postgresql/.psqlrc
Loading…
Cancel
Save