Skip to content

Commit 5729407

Browse files
authored
Merge pull request #65 from cybertec-postgresql/updateMotd
Update motd
2 parents 47774ae + 30df817 commit 5729407

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PGVERSION ?= 17
99
PGVERSION_FULL ?= 17.4
1010
OLD_PG_VERSIONS ?= 13 14 15 16
1111
PATRONI_VERSION ?= multisite-4.0.5.1
12-
PGBACKREST_VERSION ?= 2.54.2
12+
PGBACKREST_VERSION ?= 2.55.0
1313
POSTGIS_VERSION ?= 35
1414
ETCD_VERSION ?= 3.5.21
1515
PGBOUNCER_VERSION ?= 1.24
@@ -29,7 +29,7 @@ ROOTPATH ?= $(GOPATH)/src/github.com/cybertec/cybertec-pg-container
2929

3030
# Build Images
3131

32-
all: base pgbackrest postgres
32+
all: base postgres postgres-gis pgbackrest pgbouncer exporter
3333
base: base
3434
pgbackrest: pgbackrest
3535
postgres: base postgres

docker/postgres-gis/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ENV PATHBACKUP = $PATH
6666
RUN wget https://smarden.org/runit/runit-2.1.2.tar.gz -P /package/
6767
COPY cron_unprivileged.c /package/
6868

69-
RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python-etcd psutil requests cdiff ydiff==1.3 --upgrade \
69+
RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python-etcd psutil requests cdiff ydiff==1.4.2 --upgrade \
7070
&& if [[ $PATRONI_VERSION == "multisite-"* ]]; then \
7171
git clone -b $PATRONI_VERSION https://github.com/cybertec-postgresql/patroni; \
7272
pip3 install ./patroni[kubernetes,etcd,etcd3]; \
@@ -162,6 +162,7 @@ RUN rm -rf /etc/service && mkdir /home/postgres/pgdata && chown -R postgres:post
162162
chmod 755 $d/* \
163163
&& ln -s /run/supervise/$(basename $d) $d/supervise; \
164164
done \
165+
&& chmod +r /etc/motd \
165166
&& ln -snf $RW_DIR/service /etc/service \
166167
#&& ln -s $RW_DIR/pam.d-postgresql /etc/pam.d/postgresql \
167168
&& ln -s $RW_DIR/postgres.yml $PGHOME/postgres.yml \
@@ -180,7 +181,7 @@ RUN rm -rf /etc/service && mkdir /home/postgres/pgdata && chown -R postgres:post
180181
do echo "export $e" >> /etc/bash.bashrc; \
181182
done \
182183
&& ln -s /etc/skel/.bashrc $PGHOME/.bashrc \
183-
&& echo "source /etc/motd" >> /root/.bashrc \
184+
&& echo "source /etc/motd" >> /home/postgres/.bashrc \
184185
# Allow users in the root group to access the following files and dirs
185186
&& if [ "$COMPRESS" != "true" ]; then \
186187
chmod 664 /etc/passwd \

docker/postgres/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ ENV PATHBACKUP = $PATH
6565
RUN wget https://smarden.org/runit/runit-2.1.2.tar.gz -P /package/
6666
COPY cron_unprivileged.c /package/
6767

68-
RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python-etcd psutil requests cdiff ydiff==1.3 --upgrade \
68+
RUN pip3 install 'PyYAML<6.0' setuptools pystache loader kazoo meld3 boto python-etcd psutil requests cdiff ydiff==1.4.2 --upgrade \
6969
&& if [[ $PATRONI_VERSION == "multisite-"* ]]; then \
7070
git clone -b $PATRONI_VERSION https://github.com/cybertec-postgresql/patroni; \
7171
pip3 install ./patroni[kubernetes,etcd,etcd3]; \
@@ -159,6 +159,7 @@ RUN rm -rf /etc/service && mkdir /home/postgres/pgdata && chown -R postgres:post
159159
chmod 755 $d/* \
160160
&& ln -s /run/supervise/$(basename $d) $d/supervise; \
161161
done \
162+
&& chmod +r /etc/motd \
162163
&& ln -snf $RW_DIR/service /etc/service \
163164
#&& ln -s $RW_DIR/pam.d-postgresql /etc/pam.d/postgresql \
164165
&& ln -s $RW_DIR/postgres.yml $PGHOME/postgres.yml \
@@ -177,7 +178,7 @@ RUN rm -rf /etc/service && mkdir /home/postgres/pgdata && chown -R postgres:post
177178
do echo "export $e" >> /etc/bash.bashrc; \
178179
done \
179180
&& ln -s /etc/skel/.bashrc $PGHOME/.bashrc \
180-
&& echo "source /etc/motd" >> /root/.bashrc \
181+
&& echo "source /etc/motd" >> /home/postgres/.bashrc \
181182
# Allow users in the root group to access the following files and dirs
182183
&& if [ "$COMPRESS" != "true" ]; then \
183184
chmod 664 /etc/passwd \

0 commit comments

Comments
 (0)