<commit_before># oshifted_api
Basic rails app to play with iterating within an open shift ecosystem

# Development Setup using Open Shift

Install Open Shift/Minishift (Reference: https://gist.github.com/h-parekh/bff04b97bdd8d2428771f9238d7a1e46):
1. `brew cask install minishift`
1. `brew cask install virtualbox`
1. Start open shift: `minishift start --vm-driver virtualbox`
1. Wait for a message like: `The server is accessible via web console at: https://x.x.x.x:8443`
1. Add the cli to your path: `eval $(minishift oc-env)`
1. Test the cli: `oc version`

Create the project:
1. Clone this repository `git clone https://github.com/jgondron/oshifted_api.git`
1. `oc new-project oshifted-api`
1. `oc create -f /<path_to_repo>/project.yaml`
1. Watch the build/deploy progress: `oc get builds --watch`
1. Wait for a message like:
```console
railsapi-1   Source    Git@76b3d46   Complete   3 minutes ago   3m5s
```
1. Test with http://railsapi-oshifted-api.192.168.99.100.nip.io/echo?message=Hello!


Open questions:
1. Under which user account does this setup create a POD?<commit_msg>ADding instruction to login as admin<commit_after># oshifted_api
Basic rails app to play with iterating within an open shift ecosystem

# Development Setup using Open Shift

Install Open Shift/Minishift (Reference: https://gist.github.com/h-parekh/bff04b97bdd8d2428771f9238d7a1e46):
1. `brew cask install minishift`
1. `brew cask install virtualbox`
1. Start open shift: `minishift start --vm-driver virtualbox`
1. Wait for a message like: `The server is accessible via web console at: https://x.x.x.x:8443`
1. Add the cli to your path: `eval $(minishift oc-env)`
1. Test the cli: `oc version`

Create the project:
1. Clone this repository `git clone https://github.com/jgondron/oshifted_api.git`
1. Login as admin user `oc login`
1. `oc new-project oshifted-api`
1. `oc create -f /<path_to_repo>/project.yaml`
1. Watch the build/deploy progress: `oc get builds --watch`
1. Wait for a message like:
```console
railsapi-1   Source    Git@76b3d46   Complete   3 minutes ago   3m5s
```
1. Test with http://railsapi-oshifted-api.192.168.99.100.nip.io/echo?message=Hello!


Open questions:
1. Under which user account does this setup create a POD?
{'fraction_non_alphanumeric': 0.10552312528064661, 'fraction_numerical': 0.05163897620116749, 'mean_word_length': 4.205607476635514, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2664761', 'n_tokens_mistral': 822, 'n_tokens_neox': 763, 'n_words': 277}