Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.38 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.38 KB

OpenShift Container Platform Arcade: OCPArcade

Containerize and run retro games in OpenShift and play them in your browser.

Build and Deploy image in OpenShift

In this example we'll build an image in OpenShift, create service and expose it to the outside world via a route.

git clone https://github.com/nickschuetz/ocparcade
cd ocparcade/arkanoid
oc new-project ocparcade
oc new-app --strategy=docker --binary --name=arkanoid
oc start-build arkanoid --from-dir .
oc logs deployment/arkanoid -f
oc expose deployment/arkanoid --port 8080
oc expose service/arkanoid
echo http://$(oc get routes arkanoid -n ocparcade -o=jsonpath='{range .spec}{.host}{"\n"}{end}')

Deploy from pre-built image

Here's an example of deploying Epic Pinball from a pre-built image built using Podman and stored in Quay.io

oc new-project ocparcade
oc new-app quay.io/ocparcade/epicpinball
oc expose service/epicpinball
echo http://$(oc get routes epicpinball -n ocparcade -o=jsonpath='{range .spec}{.host}{"\n"}{end}')

Supporting Open Source Projects

A big thank you to the open source projects that made this possible.

OpenShift

Podman

Quay

Universal Base Images

DOSBox

js-dos