Blogs

Showing 7 results.
Items per Page 20
of 1

Forums

« Back to Technical Questions

How do I bundle packages together?

Combination View Flat View Tree View
Threads [ Previous | Next ]
How do I bundle a package with another package?

Edited by: Brett Tiller on Jun 5, 2008 9:04 PM

Edited by: Jenko Hwong on Jun 10, 2008 3:19 AM

Before bundling packages together you should think about how you set up your packaging. Bundling is typically done when one package depends upon one or more packages for its functionality. For example, if our application was dependent upon tomcat we need to specify it as such and package it. Then we would bundle our application with the tomcat package. Here are the steps.

First, you need to make your application depend upon the tomcat package by specifying the ssid of the tomcat package in your packaging script --deps parameter. You get the ssid of a package by running ./pkg_info.sh over it. So you first package your application and include the --deps parameter. You want to be sure to also give yourself console access (remember the --postinstall parameter) so that you can access and modify tomcat as needed. Then you simply bundle your generated package with the tomcat package to create a new bundled package, and then install that bundled package. Sample packaging and bundling scripts are below. You can read about this process in the AXP Developer Guide 'Bundling and Packaging' Section.

file pkgEmptyTomcatDepApp.sh
/source/javalin/tools/1.0.4/axp-sdk.1.0.4/tools/pkg_build.sh --project-dir '/source/javalin/apps/emptyTomcatDep_app/package' --dev-cert '/source/javalin/certs/generic/cert/dev_certificate.sig' --dev-auth '/source/javalin/certs/generic/auth_prod/dev_authorization.sig' --private-key '/source/javalin/certs/generic/private.key' --name 'tomcat_dep_test' --version '1.0' --description 'tomcat dep test' --uuid '25773fde-b599-459c-b0fa-5be90cc73a2f' --source-dir '/source/javalin/apps/emptyTomcatDep_app/build' --deps 'f463dc25-4749-48bd-b08c-25d8939c068b,all' --disk-limit '100M' --memory-limit '64M' --cpu-limit '1000' --postinstall 'bin/post-install.sh'

file bndleEmptyTomcatDepApp.sh
/source/javalin/tools/1.0.4/axp-sdk.1.0.4/tools/pkg_bundle.sh --project-dir '/source/javalin/apps/emptyTomcatDep_app/package' --private-key '/source/javalin/certs/generic/private.key' --output 'bndledEmptyTomcatDep.1.0.pkg' '/source/javalin/apps/emptyTomcatDep_app/package/pkg/tomcat_dep_test.1.0.pkg' '/source/javalin/builds/1.0.4/nme/axp-tomcat5.nme.1.0.4.pkg'

Collateral


No files available