mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-25 03:40:33 +00:00
chore: Syntax fixes
This commit is contained in:
parent
25d8e48375
commit
690b2d5287
@ -138,7 +138,7 @@ install-ollama:
|
|||||||
IMAGE=latest
|
IMAGE=latest
|
||||||
CUSTOM_ARGS="AddDevice=nvidia.com/gpu=all"
|
CUSTOM_ARGS="AddDevice=nvidia.com/gpu=all"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"AMD (ROCm)")
|
"AMD (ROCm)")
|
||||||
IMAGE=rocm
|
IMAGE=rocm
|
||||||
read -r -d '' CUSTOM_ARGS <<-'EOF'
|
read -r -d '' CUSTOM_ARGS <<-'EOF'
|
||||||
@ -147,12 +147,12 @@ install-ollama:
|
|||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
read -r -d '' QUADLET <<-EOF
|
read -r -d '' QUADLET <<-EOF
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=The Ollama container
|
Description=The Ollama container
|
||||||
After=local-fs.target
|
After=local-fs.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=always
|
Restart=always
|
||||||
TimeoutStartSec=60
|
TimeoutStartSec=60
|
||||||
@ -160,7 +160,7 @@ install-ollama:
|
|||||||
ExecStartPre=/bin/systemctl --user enable podman.socket
|
ExecStartPre=/bin/systemctl --user enable podman.socket
|
||||||
# Ensure that the dir exists
|
# Ensure that the dir exists
|
||||||
ExecStartPre=-mkdir -p %h/.ollama
|
ExecStartPre=-mkdir -p %h/.ollama
|
||||||
|
|
||||||
[Container]
|
[Container]
|
||||||
ContainerName=ollama
|
ContainerName=ollama
|
||||||
PublishPort=11434:11434
|
PublishPort=11434:11434
|
||||||
@ -173,10 +173,10 @@ install-ollama:
|
|||||||
PodmanArgs=--ulimit=host
|
PodmanArgs=--ulimit=host
|
||||||
PodmanArgs=--security-opt=label=disable
|
PodmanArgs=--security-opt=label=disable
|
||||||
PodmanArgs=--cgroupns=host
|
PodmanArgs=--cgroupns=host
|
||||||
|
|
||||||
Image=docker.io/ollama/ollama:${IMAGE}
|
Image=docker.io/ollama/ollama:${IMAGE}
|
||||||
${CUSTOM_ARGS}
|
${CUSTOM_ARGS}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
RequiredBy=default.target
|
RequiredBy=default.target
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user