mirror of
https://github.com/graphdeco-inria/gaussian-splatting
synced 2025-02-17 01:37:04 +00:00
add a setup script for docker..
This commit is contained in:
parent
4c540f3d59
commit
ac96e2cc2d
40
docker/setup.sh
Executable file
40
docker/setup.sh
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# This script builds and runs a docker image for local use.
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
cd "$DIR"
|
||||||
|
cd ..
|
||||||
|
REPOSITORY=`pwd`
|
||||||
|
|
||||||
|
cd "$DIR"
|
||||||
|
|
||||||
|
#https://docs.nvidia.com/ai-enterprise/deployment-guide/dg-docker.html
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y \
|
||||||
|
apt-transport-https \
|
||||||
|
ca-certificates \
|
||||||
|
curl \
|
||||||
|
gnupg-agent \
|
||||||
|
software-properties-common
|
||||||
|
|
||||||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
|
sudo apt-key fingerprint 0EBFCD88
|
||||||
|
|
||||||
|
sudo add-apt-repository \
|
||||||
|
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
|
||||||
|
$(lsb_release -cs) \
|
||||||
|
stable"
|
||||||
|
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
|
||||||
|
|
||||||
|
sudo docker run hello-world
|
||||||
|
|
||||||
|
|
||||||
|
#Make sure docker group is ok
|
||||||
|
sudo groupadd docker
|
||||||
|
sudo usermod -aG docker $USER
|
||||||
|
newgrp docker
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user