mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-19 06:37:11 -04:00
Merge pull request #17 from sbts/enhancement-latest-pg-tools
install latest version of `postgresql-client`
This commit is contained in:
commit
1d4430ecfa
12
Dockerfile
12
Dockerfile
@ -2,13 +2,20 @@ FROM debian:jessie
|
|||||||
MAINTAINER Freelock john@freelock.com
|
MAINTAINER Freelock john@freelock.com
|
||||||
|
|
||||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||||
|
#
|
||||||
# Without libclass-c3-xs-perl, everything grinds to a halt;
|
# Without libclass-c3-xs-perl, everything grinds to a halt;
|
||||||
# add it, because it's a 'recommends' it the dep tree, which
|
# add it, because it's a 'recommends' it the dep tree, which
|
||||||
# we're skipping, normally
|
# we're skipping, normally
|
||||||
|
#
|
||||||
|
# Installing psql client directly from instructions at https://wiki.postgresql.org/wiki/Apt
|
||||||
|
# That mitigates issues where the PG instance is running a newer version than this container
|
||||||
|
|
||||||
RUN echo "APT::Install-Recommends \"false\";\nAPT::Install-Suggests \"false\";" > /etc/apt/apt.conf.d/00recommends && \
|
RUN echo "APT::Install-Recommends \"false\";\nAPT::Install-Suggests \"false\";" > /etc/apt/apt.conf.d/00recommends && \
|
||||||
|
DEBIAN_FRONTEND="noninteractive" apt-mark hold sensible-utils && \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get -y update && \
|
DEBIAN_FRONTEND="noninteractive" apt-get -y update && \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get -y upgrade && \
|
DEBIAN_FRONTEND="noninteractive" apt-get -y upgrade && \
|
||||||
DEBIAN_FRONTEND="noninteractive" apt-get -y install \
|
DEBIAN_FRONTEND="noninteractive" apt-get -y install \
|
||||||
|
wget ca-certificates \
|
||||||
libcgi-emulate-psgi-perl libcgi-simple-perl libconfig-inifiles-perl \
|
libcgi-emulate-psgi-perl libcgi-simple-perl libconfig-inifiles-perl \
|
||||||
libdbd-pg-perl libdbi-perl libdatetime-perl \
|
libdbd-pg-perl libdbi-perl libdatetime-perl \
|
||||||
libdatetime-format-strptime-perl libdigest-md5-perl \
|
libdatetime-format-strptime-perl libdigest-md5-perl \
|
||||||
@ -25,9 +32,12 @@ RUN echo "APT::Install-Recommends \"false\";\nAPT::Install-Suggests \"false\";"
|
|||||||
texlive-xetex \
|
texlive-xetex \
|
||||||
starman \
|
starman \
|
||||||
libopenoffice-oodoc-perl \
|
libopenoffice-oodoc-perl \
|
||||||
postgresql-client \
|
|
||||||
ssmtp \
|
ssmtp \
|
||||||
lsb-release \
|
lsb-release \
|
||||||
|
&& echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
|
||||||
|
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
|
||||||
|
&& DEBIAN_FRONTEND="noninteractive" apt-get -y update \
|
||||||
|
&& DEBIAN_FRONTEND="noninteractive" apt-get -y install postgresql-client \
|
||||||
&& DEBIAN_FRONTEND="noninteractive" apt-get -y autoremove \
|
&& DEBIAN_FRONTEND="noninteractive" apt-get -y autoremove \
|
||||||
&& DEBIAN_FRONTEND="noninteractive" apt-get -y autoclean \
|
&& DEBIAN_FRONTEND="noninteractive" apt-get -y autoclean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
Loading…
Reference in New Issue
Block a user