A computer with Minishift, git & oc installed
-
Build a docker container from the Dockerfile, run the container, make a curl request (expose ports).
-
Save the image to a tar.gz (
docker export <container> -o example.tar.gz) -
Start minishift, create a new project named:
example -
Import the saved docker image from step 3) above
docker import example.tar.gz $(minishift openshift registry)/example/example:latest. (eval $(minishift docker-env) -
Push the Docker image from step 4 as
example:latestto theexamplenamespace. (eval $(minishift docker-env) && docker login -u developer -p $(oc whoami -t) $(minishift openshift registry)) -
Apply the
deployment.yamlfile into theexampleproject. -
Run curl against the route from your desktop
-
Run
heyfrom a shell in the pod running in minishift