From c5d8769b1750af49f6a670c1723c3b3479037b4e Mon Sep 17 00:00:00 2001 From: Benjamin Jacob Reji Date: Tue, 15 Jun 2021 15:06:44 +0400 Subject: [PATCH] Added gpuhorovod Dockerfiles --- .../docker/containers/gpuhorovod/Dockerfile | 41 +++++++++++++++++++ .../containers/gpuhorovod/description.txt | 1 + .../containers/gpuhorovod/scripts/start | 11 +++++ 3 files changed, 53 insertions(+) create mode 100644 server/docker/containers/gpuhorovod/Dockerfile create mode 100644 server/docker/containers/gpuhorovod/description.txt create mode 100644 server/docker/containers/gpuhorovod/scripts/start diff --git a/server/docker/containers/gpuhorovod/Dockerfile b/server/docker/containers/gpuhorovod/Dockerfile new file mode 100644 index 0000000..ed75ef6 --- /dev/null +++ b/server/docker/containers/gpuhorovod/Dockerfile @@ -0,0 +1,41 @@ +from horovod/horovod +# Switch to root user to install additional software +USER 0 + + +# Make sure we don't get notifications we can't answer during building. +env DEBIAN_FRONTEND noninteractive + + +# Prepare scripts and configs +add ./scripts/start /start + + +# Set root password +run echo 'root:password' >> /root/passwdfile + + +# Create user and it's password +run useradd -m -G sudo master && \ + echo 'master:password' >> /root/passwdfile + + +# Apply root password +run chpasswd -c SHA512 < /root/passwdfile && \ + rm /root/passwdfile + + +# Port 22 is used for ssh +expose 22 + + +# Assign /data as static volume. +volume ["/data"] + + +# Fix all permissions +run chmod +x /start + + +# Starting sshd +cmd ["/start"] \ No newline at end of file diff --git a/server/docker/containers/gpuhorovod/description.txt b/server/docker/containers/gpuhorovod/description.txt new file mode 100644 index 0000000..7a100b7 --- /dev/null +++ b/server/docker/containers/gpuhorovod/description.txt @@ -0,0 +1 @@ +Running official horovod dockerfile cpu version diff --git a/server/docker/containers/gpuhorovod/scripts/start b/server/docker/containers/gpuhorovod/scripts/start new file mode 100644 index 0000000..9dde9d0 --- /dev/null +++ b/server/docker/containers/gpuhorovod/scripts/start @@ -0,0 +1,11 @@ +#!/bin/bash +# ----------------------------------------------------------------------------- +# docker-ubuntu-sshd /start script +# +# Authors: Art567 +# Updated: Sep 20th, 2015 +# ----------------------------------------------------------------------------- + + +# Run OpenSSH server in daemon mode +/usr/sbin/sshd -D \ No newline at end of file