Skip to content

Commit 4b8b651

Browse files
committed
debug
Signed-off-by: xieydd <[email protected]>
1 parent f2604e6 commit 4b8b651

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

docker/pg-slim/Dockerfile

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ENV CFLAGS "-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fn
8181
ENV LDFLAGS "-Wl,-z,relro -Wl,-z,now"
8282
RUN ./configure --prefix=/usr/lib/postgresql/${PG_MAJOR} \
8383
--datarootdir=${ALTDIR} \
84-
--libdir=${ALTDIR}/${PG_VERSION}/lib \
84+
--libdir=${ALTDIR}/${PG_MAJOR}/lib \
8585
--with-perl \
8686
--with-python \
8787
--with-tcl \
@@ -112,29 +112,29 @@ WORKDIR /
112112
RUN rm -rf /postgres
113113

114114
RUN mkdir -p /var/run/postgresql && chmod 775 /var/run/postgresql
115-
RUN mkdir -p /usr/share/postgresql/${PG_MAJOR}/extension && chmod 775 /usr/share/postgresql/${PG_MAJOR}/extension
115+
# RUN mkdir -p /usr/share/postgresql/${PG_MAJOR}/extension && chmod 775 /usr/share/postgresql/${PG_MAJOR}/extension
116116

117-
COPY --from=tianon/gosu /gosu /usr/local/bin/
117+
# COPY --from=tianon/gosu /gosu /usr/local/bin/
118118

119-
# make the sample config easier to munge (and "correct by default")
120-
RUN set -eux; \
121-
echo "unix_socket_directories = '/var/run/postgresql'" >> ${ALTDIR}/postgresql.conf.sample; \
122-
sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" ${ALTDIR}/postgresql.conf.sample; \
123-
grep -F "listen_addresses = '*'" ${ALTDIR}/postgresql.conf.sample
119+
# # make the sample config easier to munge (and "correct by default")
120+
# RUN set -eux; \
121+
# echo "unix_socket_directories = '/var/run/postgresql'" >> ${ALTDIR}/postgresql.conf.sample; \
122+
# sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" ${ALTDIR}/postgresql.conf.sample; \
123+
# grep -F "listen_addresses = '*'" ${ALTDIR}/postgresql.conf.sample
124124

125-
RUN install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql
125+
# RUN install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql
126126

127-
# this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
128-
RUN install --verbose --directory --owner postgres --group postgres --mode 1777 ${PGDATA}
127+
# # this 1777 will be replaced by 0700 at runtime (allows semi-arbitrary "--user" values)
128+
# RUN install --verbose --directory --owner postgres --group postgres --mode 1777 ${PGDATA}
129129

130-
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin:/usr/local/bin
131-
COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/
132-
RUN ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh
133-
ENTRYPOINT ["docker-entrypoint.sh"]
130+
# ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin:/usr/local/bin
131+
# COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/
132+
# RUN ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh
133+
# ENTRYPOINT ["docker-entrypoint.sh"]
134134

135-
# Remove pre-installed pg_config
136-
RUN rm /usr/bin/pg_config
135+
# # Remove pre-installed pg_config
136+
# RUN rm /usr/bin/pg_config
137137

138-
STOPSIGNAL SIGINT
139-
EXPOSE 5432
140-
CMD ["postgres"]
138+
# STOPSIGNAL SIGINT
139+
# EXPOSE 5432
140+
# CMD ["postgres"]

0 commit comments

Comments
 (0)