Skip to content

Commit 43b203a

Browse files
authored
Merge pull request #72 from ericfranz/more_ondemand_tut_updates
More OnDemand Passenger Tutorial updates
2 parents 351c143 + efbe681 commit 43b203a

1 file changed

Lines changed: 29 additions & 18 deletions

File tree

ondemand/README.md

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,21 @@ Jupyter system app in the menu along with your sandbox development app.
690690

691691
## Passenger app tutorial
692692

693+
### Ensure environment for developing is configured
694+
695+
Configure OnDemand to specify ssh dev host
696+
697+
1. Open Shell app from Sandbox apps
698+
2. Notice the host is the ondemand
699+
700+
Use ondemand SCL
701+
702+
1. `which ruby`. OnDemand uses SoftwareCollections for RHEL7.
703+
2. `scl --list` shows the SCLs. To source the environment, `source scl_source enable ondemand`.
704+
3. For convenience, this was added to `.bash_profile` - `cat ~/.bash_profile`
705+
4. OnDemand configured to ssh to OnDemand host for development `cat /etc/ood/config/apps/dashboard/env`
706+
707+
693708
### Create a simplest app from scratch
694709

695710
Create new app
@@ -792,6 +807,8 @@ Notes:
792807

793808
### Restarting apps
794809

810+
First go to app editor of df app and launch the app.
811+
795812
Reload via "Restart Web Server"
796813

797814
1. In File editor, insert ``<pre>#{`df`}</pre>`` into response body and save
@@ -825,17 +842,17 @@ Notes:
825842

826843
Create manifest
827844

828-
1. In App Editor, click Edit Metadata
829-
2. Type hdd in filter and click the harddrive icon to set icon
830-
3. Click save
845+
1. In App Editor, click Files.
846+
2. new file: manifest.yml. then select to edit
831847

832-
Add category:
833-
834-
1. Click Files.
835-
2. Edit manifest.yml.
836-
837-
category: Files
838-
subcategory: Utilities
848+
```
849+
---
850+
name: df
851+
description: disk usage
852+
icon: far://hdd
853+
category: Files
854+
subcategory: Utilities
855+
```
839856

840857
Deploy app
841858

@@ -866,7 +883,7 @@ Notes:
866883
In App Editor, click Shell
867884

868885
cd /var/www/ood/apps/sys
869-
chmod 700 df
886+
sudo chmod 700 df
870887

871888
Notice hpcadmin does not have access
872889

@@ -878,7 +895,7 @@ Notice hpcadmin does not have access
878895

879896
Notes
880897

881-
* authorization controled through file permissions
898+
* authorization controlled through file permissions
882899
* can use ACLs or group ownership
883900

884901
### Status app template
@@ -915,12 +932,6 @@ Notes:
915932
* https://github.com/OSC/ood-example-ps
916933

917934

918-
### Use the correct environment when developing apps
919-
920-
1. Open Shell app from Sandbox apps. `which rake` and `which ruby`. OnDemand uses SoftwareCollections for RHEL7.
921-
2. `scl --list` shows the SCLs. To source the environment, `source scl_source enable ondemand`.
922-
3. For convenience, this was added to .bash_profile: `cat ~/.bash_profile`
923-
4. OnDemand configured to ssh to OnDemand host for development `cat /etc/ood/config/apps/dashboard/env`
924935

925936
### Apps can use own dependencies
926937

0 commit comments

Comments
 (0)