Skip to content

Commit

Permalink
Merge pull request #2 from jazzwang/centos-rpm
Browse files Browse the repository at this point in the history
initial version for building RPM and DEB packages
  • Loading branch information
popcornylu committed May 23, 2016
2 parents cf394fa + e3565c4 commit 96eb068
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build-rpm-deb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
rm -f *.rpm *.deb
if [ -d azurekit ]; then
rm -rf azurekit
fi
gradle clean
gradle build
tar xvf build/distributions/azurekit.tar
rm azurekit/bin/*.bat
docker run --rm --name fpm -h fpm -v $(pwd):/data tenzer/fpm /data/fpm/azurekit-fpm.sh
19 changes: 19 additions & 0 deletions fpm/azurekit-fpm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
cd /data
for i in rpm deb; do
fpm -s dir -t $i -a all -n azurekit -v 0.2.0 \
-m [email protected] \
--vendor tenmax \
--license Apache \
--description "CLI toolkit to interact with Microsoft Azure Blob Storage.
There are several commands included.
1. azruecat - Output a blob content to stdout
2. azuresink - Pipe stdin to a azure storage blob.
3. azuresas - Generate the Shared-Acess-Signature to stdout.
.
For more detial, please check https://github.com/tenmax/azurekit .
" \
--url https://github.com/tenmax/azurekit \
/data/azurekit/=/usr/share/azurekit \
/data/fpm/bin/=/usr/bin/
done
1 change: 1 addition & 0 deletions fpm/bin/azurecat
1 change: 1 addition & 0 deletions fpm/bin/azuresas
1 change: 1 addition & 0 deletions fpm/bin/azuresink

0 comments on commit 96eb068

Please sign in to comment.