Skip to content

Commit

Permalink
update docker file polardb#142
Browse files Browse the repository at this point in the history
  • Loading branch information
wcf committed Jun 2, 2023
1 parent d89b78e commit c250dc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/20-nproc.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.

* soft nproc 4096
root soft nproc unlimited
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ COPY polardbx-server/target/polardbx-server drds-server
COPY docker/admin/bin/* /home/admin/bin/
COPY docker/etc/* /tmp/
COPY docker/entrypoint.sh entrypoint.sh
COPY docker/20-nproc.conf /etc/security/limits.d/20-nproc.conf

RUN \
chmod a+x bin/* && \
Expand Down

0 comments on commit c250dc6

Please sign in to comment.