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

initial version for building RPM and DEB packages #2

Merged
merged 1 commit into from
May 23, 2016
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
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