Based on https://github.com/yudai/gotty with the OpenShift CLI https://github.com/openshift/origin
Build configuration for creating a container image, change the Build Output to reference the gottyforocp ImageStream, or your own external registry.
Deployment configuration for creating a running app, references the docker.io/edseymour/gottyforocp image