diff --git a/image/Dockerfile b/image/Dockerfile index a2d9879..7e75067 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -93,8 +93,7 @@ RUN mkdir /etc/sysconfig/slurm \ /var/lib/slurmd/fed_mgr_state \ && useradd -r --uid=990 slurm \ && chown -R slurm:slurm /var/*/slurm* \ - && useradd -u 1000 rocky \ - && usermod -p 'openssl password' rocky + && useradd -u 1000 rocky VOLUME /etc/slurm COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh diff --git a/image/docker-entrypoint.sh b/image/docker-entrypoint.sh index 890832d..74883bc 100755 --- a/image/docker-entrypoint.sh +++ b/image/docker-entrypoint.sh @@ -86,6 +86,8 @@ then chown root:root /home chmod 755 /home + echo $OOD_PASS | passwd --stdin rocky + echo "---> Setting up ssh for user" mkdir -p /home/rocky/.ssh