https://github.com/pollosp/sinatra-openshift-basic
Basic sinatra example for openshift
https://github.com/pollosp/sinatra-openshift-basic
Last synced: 9 months ago
JSON representation
Basic sinatra example for openshift
- Host: GitHub
- URL: https://github.com/pollosp/sinatra-openshift-basic
- Owner: pollosp
- Created: 2017-03-15T18:21:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T13:47:30.000Z (over 9 years ago)
- Last Synced: 2025-03-26T16:49:28.099Z (over 1 year ago)
- Language: Ruby
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Sinatra openshift v3 basic example
[](https://app.wercker.com/project/byKey/78996ad35b2627627b21efcdb2690472)
This example is tested on MacOS Sierra
## Install minishift
[Minishift](https://github.com/minishift/minishift)
### Install xhyve
```
$ brew update
$ brew install --HEAD xhyve
```
### Install docker-machine-xhyve
```
$ brew install docker-machine-driver-xhyve
# docker-machine-driver-xhyve need root owner and uid
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
```
### Install socat
```
brew install socat
```
### Install minishift
```
brew cask install minishift
```
## Execute minishift
With version 0.9.0
```
minishift start --deploy-router
```
With last version just
```
minishift start --openshift-version v1.5.0-alpha.3
```
## Deploy the app
```
oc login --username=admin --password=admin
oc new-app https://github.com/pollosp/sinatra-openshift-basic.git
oc expose svc/sinatra-openshift-basic
```
## Endpoint information
```
oc status
```
## Rebuild project
```
oc start-build sinatra-openshift-basic
```
## Openshift console
```
minishift console
```
## Openshift IP
```
minishift ip
````
# Log as developer
```
oc login --username=developer --password=developer
```