An example Batch Connect app that launches a Matlab application within a batch job.
This Batch Connect app requires the following software be installed on the compute nodes that the batch job is intended to run on (NOT the OnDemand node):
- OpenSSL 1.0.1+ (used to hash the Jupyter Notebook server password)
- Lmod
6.0.1+ or any other
module purge
andmodule load <modules>
based CLI used to load appropriate environments within the batch job before launching the Jupyter Notebook server. - Singularity Singularity is a container platform. It allows you to create and run containers that package up pieces of software in a way that is portable and reproducible. ... Your container is a single file, and you don't have to worry about how to install all the software you need on each different operating system and system.
Building singularity image requires elevated priviledges which may not be feasible on production environments thus we provide prebuilt image file as release artefacts.
singularity pull --arch amd64 library://ayushchatur/default/bc_vt_desktop:v2.0
or Pull by unique ID (reproducible even if tags change)
singularity pull library://ayushchatur/default/bc_vt_desktop:sha256.b3d4f08674eb7c205c154c700b91cd667c93d73da02c7d59dedb198c1e2e7b48
In case you have priviledged access you may build with reciepe as below
git clone https://github.com/AdvancedResearchComputing/OnDemandApps.git
cd Singularityfiles
sudo singularity build ubuntu-xfce.sif Singularity.def
- Change the Sif file locations in script.sh.erb
cd /home/<user>/ondemand/dev
git clone [email protected]:AdvancedResearchComputing/OnDemandApps.git
cd /var/www/ood/apps/sys
git clone [email protected]:AdvancedResearchComputing/OnDemandApps.git
Make sure to give executable permissions for image file
- Make necessary description changes to manifest.yml
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request