Installation
Prerequisites
Docker
Nvidia
Setup Nvidia Runtime
- Install nvidia drivers
- Install nvidia runtime using commands below (more info here)
#### Add the package repositoriesdistribution=$(. /etc/os-release;echo $ID$VERSION_ID)curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.listsudo apt-get update && sudo apt-get install -y nvidia-container-toolkitsudo systemctl restart docker
- Install nvidia-container-runtime
sudo apt install nvidia-container-runtime
- Add the following file at
/etc/docker/daemon.json
{"runtimes": {"nvidia": {"path": "nvidia-container-runtime","runtimeArgs": []}}}
- Test that the setup is working with the following command
docker run --runtime=nvidia nvidia/cuda:10.0-base nvidia-smi
Clone repository
git clone git@github.com:tclarke104/med-ai --recursive-submodules # downloadcd med-ai/med-ai-modelchmod +x ./build.sh./build.sh
Start project
cd med-aidocker-compose up --build
Site will be running at http://localhost:4200.