Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
5adff776
Commit
5adff776
authored
Feb 22, 2024
by
Patrice-Gaudicheau
Browse files
Adding Makefile and LLM update script
parent
7b27a96e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
Makefile
Makefile
+22
-0
update_llm.sh
update_llm.sh
+10
-0
No files found.
Makefile
0 → 100644
View file @
5adff776
install
:
@
docker-compose up
-d
remove
:
@
docker-compose down
-v
start
:
@
docker-compose start
stop
:
@
docker-compose stop
update
:
# Appelle le script de mise à jour des LLM
@
./update_llm.sh
@
git pull
@
docker-compose down
# Assure-toi que le conteneur ollama-webui est arrêté avant de reconstruire
@
docker stop ollama-webui
||
true
@
docker-compose up
--build
-d
@
docker-compose start
update_llm.sh
0 → 100644
View file @
5adff776
#!/bin/bash
# update_llm.sh
# Récupère la liste des LLM installées dans le container Docker
llm_list
=
$(
docker
exec
ollama ollama list |
tail
-n
+2 |
awk
'{print $1}'
)
# Boucle sur chaque LLM pour la mettre à jour
for
llm
in
$llm_list
;
do
docker
exec
ollama ollama pull
$llm
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment