Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
fee32a3b
Unverified
Commit
fee32a3b
authored
Jul 07, 2023
by
Frank Lee
Committed by
GitHub
Jul 07, 2023
Browse files
[docker] added ssh and rdma support for docker (#4192)
parent
190a6ea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
docker/Dockerfile
docker/Dockerfile
+12
-0
No files found.
docker/Dockerfile
View file @
fee32a3b
...
@@ -5,6 +5,18 @@ LABEL org.opencontainers.image.source = "https://github.com/hpcaitech/ColossalAI
...
@@ -5,6 +5,18 @@ LABEL org.opencontainers.image.source = "https://github.com/hpcaitech/ColossalAI
LABEL
org.opencontainers.image.licenses = "Apache License 2.0"
LABEL
org.opencontainers.image.licenses = "Apache License 2.0"
LABEL
org.opencontainers.image.base.name = "docker.io/library/hpcaitech/cuda-conda:11.3"
LABEL
org.opencontainers.image.base.name = "docker.io/library/hpcaitech/cuda-conda:11.3"
# enable passwordless ssh
RUN
mkdir
~/.ssh
&&
\
printf
"Host *
\n
ForwardAgent yes
\n
Host *
\n
StrictHostKeyChecking no"
>
~/.ssh/config
&&
\
ssh-keygen
-t
rsa
-N
""
-f
~/.ssh/id_rsa
&&
\
cat
~/.ssh/id_rsa.pub
>>
~/.ssh/authorized_keys
# enable RDMA support
RUN
apt-get update
&&
\
apt-get
install
-y
infiniband-diags perftest ibverbs-providers libibumad3 libibverbs1 libnl-3-200 libnl-route-3-200 librdmacm1
&&
\
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
# install torch
# install torch
RUN
conda
install
pytorch
==
1.12.1
torchvision
==
0.13.1
torchaudio
==
0.12.1
cudatoolkit
=
11.3
-c
pytorch
RUN
conda
install
pytorch
==
1.12.1
torchvision
==
0.13.1
torchaudio
==
0.12.1
cudatoolkit
=
11.3
-c
pytorch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment