Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cescoffier/openshift-wisdom-welcome

An example of wisdom application running on OpenShift
https://github.com/cescoffier/openshift-wisdom-welcome

Last synced: 19 days ago
JSON representation

An example of wisdom application running on OpenShift

Awesome Lists containing this project

README

        

openshift-wisdom-welcome
========================

This is an example of Wisdom application running on OpenShift (The RedHat PASS: https://www.openshift.com/).

# Prerequisites:

You just need an OpenShift account.

# The repository
The repository contains:

* an exploded version of the application
* two hooks to start and stop the application

To get the _exploded_ application, just take the `zip` file generated by Wisdom and unzip it.
Then create the following structure:

```
.openshift
action_hooks
start
stop
````

The `start` and `stop` file are the OpenShift hooks.

The `start` file contains:

```
#!/bin/bash
sh $OPENSHIFT_HOMEDIR/chameleon.sh -Dhttp.port=$OPENSHIFT_DIY_PORT -Dhttp.address=$OPENSHIFT_DIY_IP
```

The `stop` file contains:

```
#!/bin/bash
sh $OPENSHIFT_HOMEDIR/chameleon.sh stop
```

Don't forget to add the execution permission on these files (`chmod +x *`)

Once this is done, push the project on a git repository.

# Creating the OpenShift application

1. Log in on OpenShift
2. Create a new application
3. Use the 'DIY' Cartridge
4. Give the url of your git repository

That's all!