Created
December 2, 2011 02:25
-
-
Save cwarden/1421438 to your computer and use it in GitHub Desktop.
Create Pentaho BI Server Debian Package Using fpm
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
fpm --maintainer 'Christian G. Warden <cwarden@xerus.org>' \ | |
--description 'Pentaho BI Server Community Edition' \ | |
--url http://community.pentaho.com/projects/bi_platform/ \ | |
--depends java6-runtime \ | |
--name pentaho-bi-server \ | |
--version 3.10.0 \ | |
--architecture all \ | |
--exclude /opt/pentaho/biserver-ce/pentaho-solutions/system/saiku \ | |
-s dir -t deb \ | |
/opt/pentaho/biserver-ce | |
git clone https://github.com/pmalves/ctools-installer.git | |
cd ctools-installer | |
rm -rf tmp | |
mkdir -p tmp/opt/pentaho/biserver-ce/pentaho-solutions/system tmp/opt/pentaho/biserver-ce/tomcat/webapps/pentaho/WEB-INF/lib | |
./ctools-installer.sh -s tmp/opt/pentaho/biserver-ce/pentaho-solutions -w tmp/opt/pentaho/biserver-ce/tomcat/webapps/pentaho -y | |
fpm --maintainer 'Christian G. Warden <cwarden@xerus.org>' \ | |
--description 'C*Tools for Pentaho BI Server' \ | |
--url http://ctools.webdetails.org/ \ | |
--depends pentaho-bi-server \ | |
--replaces pentaho-bi-server \ | |
--name ctools \ | |
--version $(date +%Y%m%d) \ | |
--architecture all \ | |
-s dir -t deb \ | |
-C tmp \ | |
./opt/pentaho/biserver-ce | |
# CST | |
fpm --maintainer 'Christian G. Warden <cwarden@xerus.org>' \ | |
--description 'Community Startup Tabs (CST) for Pentaho BI Server' \ | |
--url http://cst.webdetails.org/ \ | |
--depends pentaho-bi-server \ | |
--replaces pentaho-bi-server,ctools \ | |
--name ctools \ | |
--name pentaho-cst \ | |
--version 1.0 \ | |
--architecture all \ | |
-s dir -t deb \ | |
-C tmp \ | |
./opt/pentaho/biserver-ce | |
# ctools-installer now includes saiku so this probably isn't needed anymore | |
fpm --maintainer 'Christian G. Warden <cwarden@xerus.org>' \ | |
--description 'Saiku Analysis Plugin for Pentaho BI Server' \ | |
--url http://analytical-labs.com/ \ | |
--depends pentaho-bi-server \ | |
--name saiku-plugin \ | |
--version 2.2-SNAPSHOT-$(date +%Y%m%d) \ | |
--architecture all \ | |
-s dir -t deb \ | |
/opt/pentaho/biserver-ce/pentaho-solutions/system/saiku | |
fpm --maintainer 'Christian G. Warden <cwarden@xerus.org>' \ | |
--description 'Pentaho Data Integration (Kettle)' \ | |
--url http://kettle.pentaho.com/ \ | |
--depends java6-runtime \ | |
--name pentaho-kettle \ | |
--version 4.2.0 \ | |
--architecture all \ | |
-s dir -t deb \ | |
-C tmp \ | |
./opt/pentaho/data-integration |
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
#!/bin/bash | |
cd thinkup | |
rm -rf build/tmp/var/www build/thinkup.zip | |
./extras/scripts/generate-distribution | |
mkdir -p build/tmp/var/www | |
unzip -d build/tmp/var/www build/thinkup.zip | |
thinkup_version=$(echo | php -F ./build/tmp/var/www/thinkup/install/version.php -E 'echo "$THINKUP_VERSION\n";') | |
fpm --maintainer 'Christian G. Warden <cwarden@xerus.org>' \ | |
--description 'ThinkUp' \ | |
--url http://thinkupapp.com/ \ | |
--depends 'apache2 | httpd, php5, php5-mysql' \ | |
--name thinkup \ | |
--version ${thinkup_version}-swellpath-$(date +%Y%m%d) \ | |
--architecture all \ | |
-s dir -t deb \ | |
-C build/tmp ./var/www/thinkup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment