Fixes in sh
This commit is contained in:
parent
293c02318a
commit
84115c12d5
1 changed files with 11 additions and 11 deletions
|
|
@ -152,23 +152,23 @@ echo "Install nvidia drivers in container"
|
||||||
|
|
||||||
run_command "incus exec ollama-container -- apt -y purge \"*nvidia*\"" "Delete nvidia"
|
run_command "incus exec ollama-container -- apt -y purge \"*nvidia*\"" "Delete nvidia"
|
||||||
|
|
||||||
run_command "incus exec ollama-container -- wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-keyring_1.1-1_all.deb" ""
|
run_command "incus exec ollama-container -- wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-keyring_1.1-1_all.deb" "Download cuda keyring"
|
||||||
run_command "incus exec ollama-container -- dpkg -i cuda-keyring_1.1-1_all.deb" ""
|
run_command "incus exec ollama-container -- dpkg -i cuda-keyring_1.1-1_all.deb" "Install cuda keyring..."
|
||||||
run_command "incus exec ollama-container -- apt-get -y -f install" ""
|
run_command "incus exec ollama-container -- apt-get -y -f install" "Update install..."
|
||||||
run_command "incus exec ollama-container -- apt update" ""
|
run_command "incus exec ollama-container -- apt update" "Update repositories..."
|
||||||
|
|
||||||
run_command "incus exec ollama-container -- bash -c 'echo \"deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /\" | tee /etc/apt/sources.list.d/cuda-debian12-x86_64.list'" ""
|
run_command "incus exec ollama-container -- bash -c 'echo \"deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /\" | tee /etc/apt/sources.list.d/cuda-debian12-x86_64.list'" "Install GPG cuda"
|
||||||
|
|
||||||
run_command "incus exec ollama-container -- apt -y update" ""
|
run_command "incus exec ollama-container -- apt -y update" "Update Cuda drivers repo"
|
||||||
|
|
||||||
run_command "incus exec ollama-container -- apt -y install cuda-drivers" ""
|
run_command "incus exec ollama-container -- apt -y install cuda-drivers" "Installing cuda drivers"
|
||||||
|
|
||||||
echo "Install Ollama in container ollama-container" ""
|
echo "Install Ollama in container ollama-container"
|
||||||
|
|
||||||
run_command "incus exec ollama-container -- apt -y install curl " ""
|
#run_command "incus exec ollama-container -- apt -y install curl " ""
|
||||||
run_command "incus exec ollama-container -- curl -fsSL https://ollama.com/install.sh | sh" ""
|
run_command "incus exec ollama-container -- curl -fsSL https://ollama.com/install.sh | sh" "Installing Ollama..."
|
||||||
|
|
||||||
run_command "incus exec ollama-container -- ollama run gemma3:4b" ""
|
run_command "incus exec ollama-container -- ollama run gemma3:4b" "Installing model gemma3:4b"
|
||||||
|
|
||||||
echo "Done!!!"
|
echo "Done!!!"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue