Added install_nvidia
This commit is contained in:
parent
ca76288f0f
commit
c6707459d7
2 changed files with 8 additions and 3 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Función para mostrar mensajes de error y salir
|
||||
function die () {
|
||||
|
||||
die () {
|
||||
echo -e "${RED}Error: $1${NC}" >&2
|
||||
exit 1
|
||||
}
|
||||
|
|
@ -82,7 +83,11 @@ fi
|
|||
|
||||
echo "Create ollama container"
|
||||
|
||||
incus launch images:debian/12 ollama-container
|
||||
IMAGE="images:debian/12"
|
||||
|
||||
|
||||
#incus launch images:debian/12 ollama-container
|
||||
incus launch "${IMAGE}" "ollama-container" || die "No se pudo lanzar el contenedor"
|
||||
|
||||
if [$? -eq 0]; then
|
||||
echo -e "${GREEN}¡Ollama-container se ha inicializado correctamente!${NC}"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@ The script add also support for docker OCI images.
|
|||
You can execute the script with the next command.
|
||||
|
||||
```sh
|
||||
curl -fsSL https://git.cuchulu.com/smartest/aiscripts/raw/branch/master/install_incus_ollama.sh | sh
|
||||
curl -fsSL https://git.cuchulu.com/smartest/aiscripts/raw/branch/master/install_incus_ollama.sh | bash
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue