-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* we can use the original efa as a base Signed-off-by: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ARG tag="20.04" | ||
FROM ghcr.io/rse-ops/lammps-efa:ubuntu-${tag} | ||
|
||
# This is added for the mpi-operator | ||
# Add priviledge separation directoy to run sshd as root. | ||
RUN mkdir -p /var/run/sshd | ||
|
||
# Allow OpenSSH to talk to containers without asking for confirmation | ||
# by disabling StrictHostKeyChecking. | ||
# mpi-operator mounts the .ssh folder from a Secret. For that to work, we need | ||
# to disable UserKnownHostsFile to avoid write permissions. | ||
# Disabling StrictModes avoids directory and files read permission checks. | ||
ARG port=22 | ||
RUN sed -i "s/[ #]\(.*StrictHostKeyChecking \).*/ \1no/g" /etc/ssh/ssh_config \ | ||
&& echo " UserKnownHostsFile /dev/null" >> /etc/ssh/ssh_config \ | ||
&& sed -i "s/[ #]\(.*Port \).*/ \1$port/g" /etc/ssh/ssh_config \ | ||
&& sed -i "s/#\(StrictModes \).*/\1no/g" /etc/ssh/sshd_config \ | ||
&& sed -i "s/#\(Port \).*/\1$port/g" /etc/ssh/sshd_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dockerbuild: | ||
build_args: | ||
tag: | ||
key: "ubuntu" | ||
versions: | ||
- "20.04" |