Skip to content

Commit

Permalink
Increase MaxConnections and MaxStartup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Aug 22, 2024
1 parent 042f4c6 commit f75cb90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,21 @@ FROM mpioperator/openmpi:0.4.0 AS production
# Provides nslookup for NNF Containers. Used for MPI Launcher InitContainers.
RUN apt-get update && apt-get install -y dnsutils && rm -rf /var/lib/apt/lists/*

# TODO remove this:
RUN apt-get update && apt-get install -y vim

COPY --from=builder /deps/libcircle/lib/ /usr
COPY --from=builder /deps/libarchive/lib/ /usr
COPY --from=builder /deps/lwgrp/lib/ /usr
COPY --from=builder /deps/dtcmp/lib/ /usr

COPY --from=builder /mfu/ /usr

# Configure the ssh server to allow 512 unsecured connections that occur before authentication is
# completed.
RUN sed -i "s/[ #]\(.*MaxSessions\).*/\1 512/g" /etc/ssh/sshd_config \
&& sed -i "s/[ #]\(.*MaxStartups\).*/\1 512/g" /etc/ssh/sshd_config

###############################################################################
# Pull in the debugging symbols on top of production image
FROM production AS debug
Expand Down

0 comments on commit f75cb90

Please sign in to comment.