Skip to content

Commit 0646714

Browse files
authored
Merge pull request #366 from boddumanohar/debpackage
create a debian .deb package for blobfuse-proxy
2 parents 6f973d7 + bdc079e commit 0646714

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ cscope.*
6969
/bazel-*
7070
*.pyc
7171
profile.cov
72+
73+
debpackage.deb

pkg/blobfuse-proxy/README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,21 @@ make gen-proto
2929
After making the required changes you can build the new blobfuse-proxy binary by running
3030
```
3131
make blobfuse-proxy
32-
```
32+
```
33+
34+
Generating dpkg file in ubuntu
35+
```
36+
make blobfuse-proxy
37+
cp _output/blobfuse-proxy ./pkg/blobfuse-proxy/usr/bin/blobfuse-proxy
38+
dpkg-deb --build pkg/blobfuse-proxy/debpackage
39+
```
40+
41+
#### Installing the agent on debian/ubuntu nodes
42+
43+
Download the blobfuse-proxy `.deb` package file onto host machine and install it using `dpkg -i blobfuse-proxy.deb`
44+
and then start the systemctl service.
45+
```
46+
systemctl enable blobfuse-proxy
47+
systemctl start blobfuse-proxy
48+
```
49+
by default blobfuse-proxy start the unix socket under `/var/lib/kubelet/blobfuse-proxy.sock`
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Package: blobfuse-proxy
2+
Version: 0.1
3+
Section: base
4+
Priority: optional
5+
Architecture: all
6+
Maintainer: Blob CSI driver maintainers
7+
Description: runs blobfuse as a proxy
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Unit]
2+
Description=Blobfuse proxy service
3+
4+
[Service]
5+
ExecStart=/usr/bin/blobfuse-proxy -blobfuse-proxy-endpoint=unix://var/lib/kubelet/blobfuse-proxy.sock
6+
7+
[Install]
8+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)