Skip to content

Latest commit

 

History

History
113 lines (87 loc) · 4.27 KB

INSTALL_en.md

File metadata and controls

113 lines (87 loc) · 4.27 KB

How to install Open Composer

Open Composer runs on Open OnDemand. Save Open Composer in your Open OnDemand application directory: /var/www/ood/apps/sys/.

# cd /var/www/ood/apps/sys/
# git clone https://github.com/RIKEN-RCCS/OpenComposer.git

Open Composer configuration

Edit ./OpenComposer/conf.yml.erb. All fields except scheduler and apps_dir can be omitted. However, if you select sge for scheduler, you need to set sge_root.

Item name Setting
scheduler Job scheduler (slurm, pbspro, sge or fujitsu_tcs)
apps_dir Application directory
login_node Login node when you launch the Open OnDemand web terminal
data_dir Directory where submitted job information is stored
bin PATH of commands of job scheduler
bin_overrides PATH of each command of job scheduler
ssh_wrapper Commands for using the job scheduler of another node using SSH
sge_root Directory for the Grid Engine root (SGE_ROOT)
footer Text in the footer
thumbnail_width Width of thumbnails for each application on the top page
navbar_color Color of navigation bar
dropdown_color Color of dropdown menu
footer_color Color of footer
category_color Background color of the top page category
description_color Background color of the application description in the application page
form_color Background color of the text area in the application page

Setting bin_overrides (Optional)

If the job scheduler is slurm, set sbatch, scontrol, scancel, and sacct as follows.

bin_overrides:
  sbatch:   "/usr/local/bin/sbatch"
  scontrol: "/usr/local/bin/scontrol"
  scancel:  "/usr/local/bin/scancel"
  sacct:    "/usr/local/bin/sacct"

If the job scheduler is pbspro, set qsub, qstat, and qdel as follows.

bin_overrides:
  qsub:   "/usr/local/bin/qsub"
  qstat: "/usr/local/bin/qstat"
  qdel:  "/usr/local/bin/qdel"

If the job scheduler is sge, set qsub, qstat, qdel, and qacct as follows.

bin_overrides:
  qsub:   "/usr/local/bin/qsub"
  qstat: "/usr/local/bin/qstat"
  qdel:  "/usr/local/bin/qdel"
  qacct: "/usr/local/bin/qacct"

If the job scheduler is fujitsu_tcs, set pjsub, pjstat, and pjdel as follows.

bin_overrides:
  pjsub:  "/usr/local/bin/pjsub"
  pjstat: "/usr/local/bin/pjstat"
  pjdel:  "/usr/local/bin/pjdel"

Registration for Open OnDemand by administrator

When you save Open Composer to /var/www/ood/apps/sys/, the Open Composer icon will be displayed on the Open OnDemand top page. If it is not displayed, check ./OpenComposer/manifest.yml.

You can also display Open Composer applications on the Open OnDemand top page. For example, if you want to display an application ./OpenComposer/apps/Slurm/, create a directory with the same name in the Open OnDemand application directory (# mkdir /var/www/ood/apps/sys/Slurm). Then, create the following Open OnDemand configuration file manifest.yml in that directory.

# cat /var/www/ood/apps/sys/Slurm/manifest.yml
---
name: Slurm
url: https://example.net/pun/sys/OpenComposer/Slurm

Registration for Open OnDemand by general user

You can also install Open Composer with general user privileges. However, the App Development feature in Open OnDemand needs to be enabled in advance by an administrator.

Select "My Sandbox Apps (Development)" under "</> Develop" in the navigation bar. (Note that if your web browser window size is small, it will display "</>" instead of "</> Develop".)

Navbar

Click "New App".

New App

Click "Clone Existing App".

Clone an existing app

Enter any name in "Directory name" (here we enter OpenComposer), enter "https://github.com/RIKEN-RCCS/OpenComposer.git" in "Git remote", and click "Submit".

New repository

Click "Launch Open Composer".

Bundle Install

When you edit ./OpenComposer/manifest.yml, which is a manifest file for Open OnDemand, the Open Composer icon will appear on the Open OnDemand top page (this icon will only be displayed to the user who installed it).