Omar Nahil Sobh @ on
Tool customization
I have a complete HUB install and want to add my own application as a tool for people to run. It has it’s own GUI so no need for rappture. It does need Java to run.
1) How can I install Java in the openVZ vm so that all users have Java installed? 2) If my application uses a bash script to run the application how could my invoke script be crafted?
my path to the application is /tools/app/bin/test.sh
I would like to launch this as a tool.
2 Like 0 Dislike
John B Rosheck @ on
To install supporting programs in an openVZ container you must first chroot into it. First look in the template directory for a specific template to use by running : ls -la /var/lib/vz/templates/ Then chroot into that template (it will be a directory tree): chroot /var/lib/vz/templates/mytemplate
Then add your packages as you would normally do : apt-get install new_package1 new_package2 … When you are finished, type exit to get back out of the chroot.
To place your application on the hub as a tool, you should follow the normal tool development process as described by the documentation found at: http://hubzero.org/documentation/0.9.0/tooldevs
It will then end up in /apps/my_new_tool. All tools need to be under /apps since that directory is bind mounted to the openVZ container.
For a specific tool implementation example, please take a look at /apps/helloworld by logging in to your hubzero.org account and starting a workspace. From there, search the directory /apps/helloworld to find the invoke script and other pieces that you may need to get your tool working.
Reply Report abuse
Please login to answer the question.