-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55eaf14
commit 1d8b3b3
Showing
7 changed files
with
35 additions
and
24 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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .base import script as base_script | ||
from .install_docker import script as install_docker | ||
from .install_nvidia_docker import script as install_nvidia_docker | ||
from .install_nvidia_drivers import script as install_nvidia_drivers | ||
from .base import script as base_script |
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
script = """ | ||
apt-get remove -y docker docker-engine docker.io containerd runc | ||
apt-get update | ||
apt-get install -y \ | ||
sudo apt-get remove -y docker docker-engine docker.io containerd runc | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
lsb-release | ||
rm -rf /usr/share/keyrings/docker-archive-keyring.gpg | ||
su - "$USER" -c "curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg" | ||
sudo rm -rf /usr/share/keyrings/docker-archive-keyring.gpg | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | ||
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
apt-get update | ||
apt-get install -y docker-ce docker-ce-cli containerd.io | ||
sudo apt-get update | ||
sudo apt-get install -y docker-ce docker-ce-cli containerd.io | ||
groupadd -f docker | ||
usermod -aG docker $USER | ||
sudo groupadd -f docker | ||
sudo usermod -aG docker $USER | ||
systemctl enable docker.service | ||
systemctl enable containerd.service | ||
sudo systemctl enable docker.service | ||
sudo systemctl enable containerd.service | ||
""" |
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,12 @@ | ||
script = """ | ||
set -e | ||
sudo apt-get update | ||
sudo apt-get install -y python3 python3-pip | ||
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1 | ||
sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 | ||
pip install -U pip | ||
pip install -U mlspace | ||
""" |
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
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 |
---|---|---|
@@ -1,8 +1,4 @@ | ||
script = """ | ||
#!/usr/bin/env bash | ||
set -e | ||
sudo add-apt-repository -y ppa:graphics-drivers/ppa | ||
sudo apt-get install -y nvidia-driver-{version} | ||
""" |