Skip to content

Commit 07e637f

Browse files
committed
chore(database): disable huge_pages
1 parent 022a37d commit 07e637f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ COPY --from=builder /usr/local/bin/wal-g /bin/wal-g
2323
ENV PGDATA $PGDATA/$PG_MAJOR
2424
ENV WALG_ENVDIR /etc/wal-g.d/env
2525

26-
RUN sed -i -r 's/#huge_pages.*?/huge_pages = try/g' /usr/share/postgresql/postgresql.conf.sample \
27-
&& mkdir -p $WALG_ENVDIR \
26+
RUN mkdir -p $WALG_ENVDIR \
2827
&& apt-get update \
2928
&& apt-get install -y --no-install-recommends \
3029
jq \
3130
python3 \
3231
ca-certificates \
3332
python3-pip \
34-
&& pip3 install envdir
33+
&& pip3 install envdir \
34+
&& sed -i -r 's/#huge_pages.*?/huge_pages = off/g' /usr/share/postgresql/postgresql.conf.sample
3535

3636
CMD ["/docker-entrypoint.sh", "postgres"]
3737
EXPOSE 5432

0 commit comments

Comments
 (0)