Skip to content

Commit 35a5226

Browse files
authored
Merge pull request #410 from boddumanohar/redhat-centos-package
create an RPM package for blobfuse-proxy
2 parents 314407e + f8d2f21 commit 35a5226

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

pkg/blobfuse-proxy/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,21 @@ make blobfuse-proxy
4545
cp _output/blobfuse-proxy ./pkg/blobfuse-proxy/debpackage/usr/bin/blobfuse-proxy
4646
dpkg-deb --build pkg/blobfuse-proxy/debpackage
4747
```
48+
49+
- Generate redhat/centos package
50+
```console
51+
cp _output/blobfuse-proxy ./pkg/blobfuse-proxy/rpmbuild/SOURCES/blobfuse-proxy
52+
cd ~/rpmbuild/SPECS/
53+
rpmbuild --target noarch -bb utils.spec
54+
```
55+
56+
- Installing blobfuse-proxy package
57+
```console
58+
# On debian based systems:
59+
wget https://github.com/kubernetes-sigs/blob-csi-driver/raw/master/deploy/blobfuse-proxy/v0.1.0/blobfuse-proxy-v0.1.0.deb
60+
dpkg -i blobfuse-proxy-v0.1.0.deb
61+
62+
# On redhat/centos based systems
63+
wget https://github.com/kubernetes-sigs/blob-csi-driver/raw/master/deploy/blobfuse-proxy/v0.1.0/blobfuse-proxy-v0.1.0.rpm
64+
rpm -ivh utils-1.0.0-1.noarch.rpm
65+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
###############################################################################
2+
# Spec file for blobfuse-proxy
3+
################################################################################
4+
# Configured to be built by non-root user
5+
################################################################################
6+
#
7+
Summary: Utility scripts for creating RPM package for blobfuse-proxy
8+
Name: blobfuse-proxy
9+
Version: v0.1.0
10+
Release: 1
11+
License: Apache
12+
Group: System
13+
Packager: David Both
14+
Requires: bash
15+
BuildRoot: ~/rpmbuild/
16+
17+
%description
18+
Utility scripts for creating RPM package for blobfuse-proxy
19+
20+
%install
21+
mkdir -p %{buildroot}/usr/bin/
22+
cp blobfuse-proxy %{buildroot}/usr/bin/blobfuse-proxy
23+
24+
%files
25+
/usr/bin/blobfuse-proxy

0 commit comments

Comments
 (0)