changed back to old dockerfile for GPU and added Nvidia ansible run

This commit is contained in:
2021-05-31 23:55:15 +04:00
parent 6c86082f48
commit 1324e0394f
20 changed files with 352 additions and 4 deletions

View File

@@ -82,9 +82,9 @@ func BuildRunContainer(NumPorts int, GPU string) (*DockerVM,error) {
return nil,err
}
RespDocker.ImagePath = config.DockerFile
if GPU == "true" {
RespDocker.ImagePath = "/home/asleepyguy/p2p-rendering-computation/server/docker/containers/docker-ubuntu-sshd-gpu/"
}
//if GPU == "true" {
// RespDocker.ImagePath = "/home/asleepyguy/p2p-rendering-computation/server/docker/containers/docker-ubuntu-sshd-gpu/"
//}
// Gets docker information from env variables
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())