Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
ollama
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
ollama
Commits
386f0e62
Commit
386f0e62
authored
Aug 15, 2025
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
Makefile
Makefile
+40
-0
ollama-0.11.4.tar.gz
ollama-0.11.4.tar.gz
+0
-0
No files found.
Makefile
0 → 100644
View file @
386f0e62
all
:
ollama-service
dd
if
=
/dev/zero
of
=
swap
bs
=
1048576
count
=
1024
chmod
600 swap
mkswap swap
swapon swap
mkdir
tmp
mount
--bind
tmp /tmp
tar
xf
ollama-0.11.4.tar.gz
cd
ollama-0.11.4
&&
cmake
-B
build
cd
ollama-0.11.4
&&
cmake
--build
build
cd
ollama-0.11.4
&&
GO111MODULE
=
on
GOCACHE
=
/tmp/gocache
GOPATH
=
$(CURDIR)
/../go/go
$(CURDIR)
/../go/go/bin/go mod download
cd
ollama-0.11.4
&&
GO111MODULE
=
on
GOCACHE
=
/tmp/gocache
GOPATH
=
$(CURDIR)
/../go/go
$(CURDIR)
/../go/go/bin/go build
-trimpath
-buildmode
=
pie
-o
/usr/bin/ollama .
@echo
"$$OLLAMA_SERVICE"
>
/lib/systemd/system/ollama.service
systemctl
enable
ollama.service
rm
-rf
ollama-0.11.4
umount
/tmp
rm
-rf
tmp
swapoff
swap
rm
-rf
swap
ollama-service
:
define
OLLAMA_SERVICE
[Unit]
Description
=
Ollama server
After
=
network-online.target
Wants
=
network-online.target
[Service]
Type
=
simple
User
=
root
Group
=
root
ExecStart
=
/usr/bin/ollama
Restart
=
on-failure
[Install]
WantedBy
=
multi-user.target
endef
export
OLLAMA_SERVICE
ollama-0.11.4.tar.gz
0 → 100644
View file @
386f0e62
File added
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