File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ postgres-build:
8787 --build-arg OLD_PG_VERSIONS=" $( OLD_PG_VERSIONS) " \
8888 --build-arg PGVERSION=$(PGVERSION ) \
8989 --build-arg ETCD_VERSION=$(ETCD_VERSION ) \
90- --build-arg PGVERSION=$(PGVERSION ) \
9190 --build-arg ARCH=$(ARCH )
9291
9392postgres : postgres-build
Original file line number Diff line number Diff line change @@ -202,6 +202,10 @@ COPY launcher/postgres/launch.sh /
202202
203203ENTRYPOINT ["/scripts/nss_wrapper/nss_wrapper.sh" ]
204204
205+ ENV LD_PRELOAD=/usr/lib64/libnss_wrapper.so \
206+ NSS_WRAPPER_PASSWD=/tmp/nss_wrapper/passwd \
207+ NSS_WRAPPER_GROUP=/tmp/nss_wrapper/group
208+
205209USER postgres
206210
207211CMD ["/bin/sh" , "/launch.sh" , "init" ]
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ ENV LC_ALL=en_US.utf-8 \
138138 PGHOME=/home/postgres \
139139 RW_DIR=/run \
140140 TIMESCALEDB=$TIMESCALEDB \
141- DEMO=$DEMO
141+ DEMO=$DEMO
142142
143143ENV LOG_ENV_DIR=$RW_DIR/etc/log.d/env \
144144 PGROOT=$PGHOME/pgdata/pgroot
@@ -199,6 +199,10 @@ COPY launcher/postgres/launch.sh /
199199
200200ENTRYPOINT ["/scripts/nss_wrapper/nss_wrapper.sh" ]
201201
202+ ENV LD_PRELOAD=/usr/lib64/libnss_wrapper.so \
203+ NSS_WRAPPER_PASSWD=/tmp/nss_wrapper/passwd \
204+ NSS_WRAPPER_GROUP=/tmp/nss_wrapper/group
205+
202206USER postgres
203207
204208CMD ["/bin/sh" , "/launch.sh" , "init" ]
Original file line number Diff line number Diff line change @@ -38,8 +38,4 @@ if [[ ! $(cat "${NSS_GROUP}") =~ ${NSS_USERNAME}:x:${CURRENT_USER} ]]; then
3838 echo " Group was added via nss_wrapper"
3939fi
4040
41- export LD_PRELOAD=/usr/lib64/libnss_wrapper.so
42- export NSS_WRAPPER_PASSWD=" ${NSS_PASSWD} "
43- export NSS_WRAPPER_GROUP=" ${NSS_GROUP} "
44-
4541exec " $@ "
You can’t perform that action at this time.
0 commit comments