@@ -81,7 +81,7 @@ ENV CFLAGS "-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fn
81
81
ENV LDFLAGS "-Wl,-z,relro -Wl,-z,now"
82
82
RUN ./configure --prefix=/usr/lib/postgresql/${PG_MAJOR} \
83
83
--datarootdir=${ALTDIR} \
84
- --libdir=${ALTDIR}/${PG_VERSION }/lib \
84
+ --libdir=${ALTDIR}/${PG_MAJOR }/lib \
85
85
--with-perl \
86
86
--with-python \
87
87
--with-tcl \
@@ -112,29 +112,29 @@ WORKDIR /
112
112
RUN rm -rf /postgres
113
113
114
114
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
116
116
117
- COPY --from=tianon/gosu /gosu /usr/local/bin/
117
+ # COPY --from=tianon/gosu /gosu /usr/local/bin/
118
118
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
124
124
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
126
126
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}
129
129
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"]
134
134
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
137
137
138
- STOPSIGNAL SIGINT
139
- EXPOSE 5432
140
- CMD ["postgres" ]
138
+ # STOPSIGNAL SIGINT
139
+ # EXPOSE 5432
140
+ # CMD ["postgres"]
0 commit comments