Added install_nvidia

This commit is contained in:
Antonio de la Rosa 2025-04-01 23:15:38 +02:00
parent ca76288f0f
commit c6707459d7
2 changed files with 8 additions and 3 deletions

View file

@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
# Función para mostrar mensajes de error y salir # Función para mostrar mensajes de error y salir
function die () {
die () {
echo -e "${RED}Error: $1${NC}" >&2 echo -e "${RED}Error: $1${NC}" >&2
exit 1 exit 1
} }
@ -82,7 +83,11 @@ fi
echo "Create ollama container" 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 if [$? -eq 0]; then
echo -e "${GREEN}¡Ollama-container se ha inicializado correctamente!${NC}" echo -e "${GREEN}¡Ollama-container se ha inicializado correctamente!${NC}"

View file

@ -8,6 +8,6 @@ The script add also support for docker OCI images.
You can execute the script with the next command. You can execute the script with the next command.
```sh ```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
``` ```