Skip to content

Commit

Permalink
🚜 plist => ollama-[copy|diff]-plist
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftriplett committed Mar 18, 2024
1 parent bd77a5e commit baa07e6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
6 changes: 6 additions & 0 deletions home/.justfiles/ollama.just
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
export OLLAMA_HOST := "0.0.0.0:11434"
export OLLAMA_ORIGINS := "http://*"

@ollama-copy-plist:
cp ~/.plists/homebrew.mxcl.ollama.plist /opt/homebrew/opt/ollama/homebrew.mxcl.ollama.plist

@ollama-diff-plist:
diff ~/.plists/homebrew.mxcl.ollama.plist /opt/homebrew/opt/ollama/homebrew.mxcl.ollama.plist

@ollama-download:
# https://github.com/jmorganca/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values
# https://github.com/jmorganca/ollama/blob/main/examples/python/client.py
Expand Down
36 changes: 36 additions & 0 deletions home/.plists/homebrew.mxcl.ollama.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>homebrew.mxcl.ollama</string>
<key>LimitLoadToSessionType</key>
<array>
<string>Aqua</string>
<string>Background</string>
<string>LoginWindow</string>
<string>StandardIO</string>
<string>System</string>
</array>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/opt/ollama/bin/ollama</string>
<string>serve</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/opt/homebrew/var/log/ollama.log</string>
<key>StandardOutPath</key>
<string>/opt/homebrew/var/log/ollama.log</string>
<key>WorkingDirectory</key>
<string>/opt/homebrew/var</string>
<key>EnvironmentVariables</key>
<dict>
<key>OLLAMA_HOST</key><string>0.0.0.0:11434</string>
<key>OLLAMA_ORIGINS</key><string>http://*</string>
</dict>
</dict>
</plist>
4 changes: 0 additions & 4 deletions home/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,6 @@ virtualenv-scan:
@kill-tabs:
bunx kill-tabs

@plist:
# diff ~/.plists/homebrew.mxcl.ollama.plist /opt/homebrew/opt/ollama/homebrew.mxcl.ollama.plist
cp ~/.plists/homebrew.mxcl.ollama.plist /opt/homebrew/opt/ollama/homebrew.mxcl.ollama.plist

@topalias:
topalias

Expand Down

0 comments on commit baa07e6

Please sign in to comment.