This is a simplified version of the OSC Status App, streamlined to provide essential functionality for embedding an iframe in your Open OnDemand instance. It allows you to embed an external dashboard (such as the Slurm Dashboard) within your Open OnDemand interface.
- Lightweight Ruby app for Open OnDemand
- Embeds external dashboards using an iFrame
- Easy to install and configure
- Open OnDemand installation
- Clone this repository into the Open OnDemand apps directory:
cd /var/www/ood/apps/sys/
git clone https://github.com/thediymaker/ood-status-iframe.git
- set permissions on the directory, for example, 755
chmod -R 755 ood-status-iframe
- Configure the bundle path and run setup to verify functionality:
cd ood-status-iframe
bin/bundle config --local --path vendor/bundle
bin/setup
-
Open the
views/layout.erb
file in your preferred text editor. -
Update the URL in the iFrame to point to your external dashboard:
<iframe src="https://your-external-dashboard-url.com" ...>
- Update the mainifest.yml to reflect the application name and location in the menu that you would like this app to appear.
name: System Status
description: |-
HPC node status
category: System
subcategory: System Information
icon: fa://bar-chart
show_in_menu: true
To verify that the app is working correctly:
- Ensure that Open OnDemand can access the app directory.
- Restart the Open OnDemand service if necessary.
- Log in to your Open OnDemand instance and look for the new app in the available apps list.
Once installed and configured, users can access the embedded dashboard through the Open OnDemand interface. The external dashboard will be displayed within an iFrame in the Open OnDemand UI.
If you encounter issues:
- Check that the app directory permissions are correct, this is a common one, if your app doesnt show up in the browser, its either an issue with permissions or the local user webserver needs a restart.
- Verify that the URL in
views/layout.erb
is accessible by the user and the Open OnDemand server. - Review Open OnDemand, and system logs for any error messages.
Contributions to improve this app are welcome. Please submit issues and pull requests on the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.
- Based on the OSC Status App
- Developed for integration with HPC Dashboard and similar external monitoring tools
For more information or support, please open an issue on the GitHub repository.