Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement distributed training using Kubernetes #77

Merged
merged 17 commits into from
Jan 23, 2021
Merged
Prev Previous commit
Next Next commit
Harden security slightly
  • Loading branch information
leogao2 committed Jan 23, 2021
commit dcd11ae2a39090ddfd55820ea768f4eeb07515f4
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM atlanticcrypto/cuda-ssh-server:10.2-cudnn
StellaAthena marked this conversation as resolved.
Show resolved Hide resolved

RUN echo 'AuthorizedKeysFile .ssh/authorized_keys' >> /etc/ssh/sshd_config && \
echo 'PermitEmptyPasswords yes' >> /etc/ssh/sshd_config && \
echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config && \
apt-get update && \
apt-get install -y git python3.8 python3.8-dev python3-pip sudo pdsh && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 && \
update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 && \
update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 && \
passwd -d root
update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1

RUN python3 -m pip install --upgrade pip && \
pip3 install torch pipx && \
Expand Down