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:latest
to theexample
namespace. (eval $(minishift docker-env) && docker login -u developer -p $(oc whoami -t) $(minishift openshift registry)
) -
Apply the
deployment.yaml
file into theexample
project. -
Run curl against the route from your desktop
-
Run
hey
from a shell in the pod running in minishift