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
db51c220
"...composable_kernel_onnxruntime.git" did not exist on "eccf8773a6e7536aa42b3034014a480b779bd651"
Unverified
Commit
db51c220
authored
Jan 09, 2024
by
Tanvir
Browse files
refactor(run-ollama-docker.sh): update with port variables
parent
fd33f68f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
run-ollama-docker.sh
run-ollama-docker.sh
+4
-1
No files found.
run-ollama-docker.sh
View file @
db51c220
#!/bin/bash
#!/bin/bash
host_port
=
11434
container_port
=
11434
read
-r
-p
"Do you want ollama in Docker with GPU support? (y/n): "
use_gpu
read
-r
-p
"Do you want ollama in Docker with GPU support? (y/n): "
use_gpu
docker
rm
-f
ollama
||
true
docker
rm
-f
ollama
||
true
docker pull ollama/ollama:latest
docker pull ollama/ollama:latest
docker_args
=
"-d -v ollama:/root/.ollama -p
11434:11434
--name ollama ollama/ollama"
docker_args
=
"-d -v ollama:/root/.ollama -p
$host_port
:
$container_port
--name ollama ollama/ollama"
if
[
"
$use_gpu
"
==
"y"
]
;
then
if
[
"
$use_gpu
"
==
"y"
]
;
then
docker_args+
=
" --gpus=all"
docker_args+
=
" --gpus=all"
...
...
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