Skip to content

Commit

Permalink
Remove duplicate config line from database images
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentAntoine committed May 23, 2024
1 parent f6cf582 commit 4976093
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions infra/docker/database/pg13_16.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ RUN \
RUN for file in $(find /usr/share/postgresql -name 'postgresql.conf.sample'); do \
# We want timescaledb to be loaded in this image by every created cluster
sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" "$file" \
# We need to listen on all interfaces, otherwise PostgreSQL is not accessible
&& echo "listen_addresses = '*'" >> "$file"; \
done

# Install PostGIS extension
Expand Down
2 changes: 0 additions & 2 deletions infra/docker/database/upgrade_pg.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ RUN \
RUN for file in $(find /usr/share/postgresql -name 'postgresql.conf.sample'); do \
# We want timescaledb to be loaded in this image by every created cluster
sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" "$file" \
# We need to listen on all interfaces, otherwise PostgreSQL is not accessible
&& echo "listen_addresses = '*'" >> "$file"; \
done

# Install PostGIS extension in both versions of Postgres
Expand Down

0 comments on commit 4976093

Please sign in to comment.