-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jazzwang/centos-rpm
initial version for building RPM and DEB packages
- Loading branch information
Showing
5 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/share/azurekit/bin/azurecat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/share/azurekit/bin/azuresas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/share/azurekit/bin/azuresink |