Skip to content

Commit 85aadc0

Browse files
committed
Move end of line comment to its own line to improve readability
1 parent cc305ee commit 85aadc0

12 files changed

+24
-12
lines changed

10/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
164164

165165
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
166166
ENV PGDATA /var/lib/postgresql/data
167-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
167+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
168+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
168169
VOLUME /var/lib/postgresql/data
169170

170171
COPY docker-entrypoint.sh /usr/local/bin/

10/alpine/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/pos
141141
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
142142

143143
ENV PGDATA /var/lib/postgresql/data
144-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
144+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
145+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
145146
VOLUME /var/lib/postgresql/data
146147

147148
COPY docker-entrypoint.sh /usr/local/bin/

11/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
164164

165165
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
166166
ENV PGDATA /var/lib/postgresql/data
167-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
167+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
168+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
168169
VOLUME /var/lib/postgresql/data
169170

170171
COPY docker-entrypoint.sh /usr/local/bin/

11/alpine/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/pos
141141
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
142142

143143
ENV PGDATA /var/lib/postgresql/data
144-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
144+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
145+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
145146
VOLUME /var/lib/postgresql/data
146147

147148
COPY docker-entrypoint.sh /usr/local/bin/

9.4/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
165165

166166
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
167167
ENV PGDATA /var/lib/postgresql/data
168-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
168+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
169+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
169170
VOLUME /var/lib/postgresql/data
170171

171172
COPY docker-entrypoint.sh /usr/local/bin/

9.4/alpine/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/pos
139139
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
140140

141141
ENV PGDATA /var/lib/postgresql/data
142-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
142+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
143+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
143144
VOLUME /var/lib/postgresql/data
144145

145146
COPY docker-entrypoint.sh /usr/local/bin/

9.5/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
165165

166166
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
167167
ENV PGDATA /var/lib/postgresql/data
168-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
168+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
169+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
169170
VOLUME /var/lib/postgresql/data
170171

171172
COPY docker-entrypoint.sh /usr/local/bin/

9.5/alpine/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/pos
139139
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
140140

141141
ENV PGDATA /var/lib/postgresql/data
142-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
142+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
143+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
143144
VOLUME /var/lib/postgresql/data
144145

145146
COPY docker-entrypoint.sh /usr/local/bin/

9.6/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
165165

166166
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
167167
ENV PGDATA /var/lib/postgresql/data
168-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
168+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
169+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
169170
VOLUME /var/lib/postgresql/data
170171

171172
COPY docker-entrypoint.sh /usr/local/bin/

9.6/alpine/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/pos
139139
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
140140

141141
ENV PGDATA /var/lib/postgresql/data
142-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
142+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
143+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
143144
VOLUME /var/lib/postgresql/data
144145

145146
COPY docker-entrypoint.sh /usr/local/bin/

Dockerfile-alpine.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ RUN sed -ri "s!^#?(listen_addresses)\s*=\s*\S+.*!\1 = '*'!" /usr/local/share/pos
143143
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
144144

145145
ENV PGDATA /var/lib/postgresql/data
146-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
146+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
147+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
147148
VOLUME /var/lib/postgresql/data
148149

149150
COPY docker-entrypoint.sh /usr/local/bin/

Dockerfile-debian.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
165165

166166
ENV PATH $PATH:/usr/lib/postgresql/$PG_MAJOR/bin
167167
ENV PGDATA /var/lib/postgresql/data
168-
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA" # this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
168+
# this 777 will be replaced by 700 at runtime (allows semi-arbitrary "--user" values)
169+
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
169170
VOLUME /var/lib/postgresql/data
170171

171172
COPY docker-entrypoint.sh /usr/local/bin/

0 commit comments

Comments
 (0)