diff --git a/pkg/blobfuse-proxy/README.md b/pkg/blobfuse-proxy/README.md index 822c864ad..dac7aeb98 100644 --- a/pkg/blobfuse-proxy/README.md +++ b/pkg/blobfuse-proxy/README.md @@ -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 +``` diff --git a/pkg/blobfuse-proxy/rpmbuild/SPECS/utils.spec b/pkg/blobfuse-proxy/rpmbuild/SPECS/utils.spec new file mode 100644 index 000000000..45dd49ef4 --- /dev/null +++ b/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