Skip to content

sdhutchins/ood-template-editor

Repository files navigation

Template Bash Script Editor (Open OnDemand)

This is a simple Flask-based web app for editing and filling in bash script templates within Open OnDemand. It lets you pick a template, fill in variables, preview the rendered script, and save it into your home (or another configured) directory.

This app is built on standard Python 3 and Flask and was inspired by OSC's OOD Flask example app.

Installation

Create the app directory, clone the repository, and run setup:

# Create the sandbox apps directory (Open OnDemand scans this location for apps)
mkdir -p /data/user/$USER/ondemand/dev

# Navigate to the sandbox directory
cd /data/user/$USER/ondemand/dev

# Clone the repository (replace <repository-url> with your actual repo URL)
git clone <repository-url> ood-template-editor

# Enter the app directory
cd ood-template-editor

# Run setup to create venv and install dependencies
./setup.sh

Explanation of setup.sh

Run setup.sh to create a virtual environment and install dependencies. The script also creates bin/python, which Passenger uses instead of system Python. This ensures Passenger uses your venv's Python with Flask installed.

Learn More

About

A Flask-based web app for editing bash script templates on OpenOnDemand.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors