Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create an RPM package for blobfuse-proxy #410

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions pkg/blobfuse-proxy/README.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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