Skip to content

Commit

Permalink
create an RPM package for blobfuse-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
boddumanohar committed May 2, 2021
1 parent 314407e commit f8d2f21
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/blobfuse-proxy/README.md
Expand Up @@ -45,3 +45,21 @@ make blobfuse-proxy
cp _output/blobfuse-proxy ./pkg/blobfuse-proxy/debpackage/usr/bin/blobfuse-proxy
dpkg-deb --build pkg/blobfuse-proxy/debpackage
```

- Generate redhat/centos package
```console
cp _output/blobfuse-proxy ./pkg/blobfuse-proxy/rpmbuild/SOURCES/blobfuse-proxy
cd ~/rpmbuild/SPECS/
rpmbuild --target noarch -bb utils.spec
```

- Installing blobfuse-proxy package
```console
# On debian based systems:
wget https://github.com/kubernetes-sigs/blob-csi-driver/raw/master/deploy/blobfuse-proxy/v0.1.0/blobfuse-proxy-v0.1.0.deb
dpkg -i blobfuse-proxy-v0.1.0.deb

# On redhat/centos based systems
wget https://github.com/kubernetes-sigs/blob-csi-driver/raw/master/deploy/blobfuse-proxy/v0.1.0/blobfuse-proxy-v0.1.0.rpm
rpm -ivh utils-1.0.0-1.noarch.rpm
```
25 changes: 25 additions & 0 deletions pkg/blobfuse-proxy/rpmbuild/SPECS/utils.spec
@@ -0,0 +1,25 @@
###############################################################################
# Spec file for blobfuse-proxy
################################################################################
# Configured to be built by non-root user
################################################################################
#
Summary: Utility scripts for creating RPM package for blobfuse-proxy
Name: blobfuse-proxy
Version: v0.1.0
Release: 1
License: Apache
Group: System
Packager: David Both
Requires: bash
BuildRoot: ~/rpmbuild/

%description
Utility scripts for creating RPM package for blobfuse-proxy

%install
mkdir -p %{buildroot}/usr/bin/
cp blobfuse-proxy %{buildroot}/usr/bin/blobfuse-proxy

%files
/usr/bin/blobfuse-proxy

0 comments on commit f8d2f21

Please sign in to comment.