Skip to content

Latest commit

 

History

History
71 lines (41 loc) · 3.02 KB

File metadata and controls

71 lines (41 loc) · 3.02 KB

OpenShift usage of "headless" VNC Docker images

The following content uses as example the image consol/centos-xfce-vnc of the Dockerfile Dockerfile.centos.xfce.vnc.

Run the image from Dockerhub

cd openshift                
oc new-project my-project   

As soon as you are logged in and selected your oc project, you can simple run the image by using the configuration openshift.headless-vnc.run.yaml:

oc process -f openshift.headless-vnc.run.yaml -v APPLICATION_NAME=myrunonlypod IMAGE=consol/centos-xfce-vnc | oc create -f -
# service "my-run-only-pod" created
# route "my-run-only-pod" created
# imagestream "my-run-only-pod" created
# deploymentconfig "my-run-only-pod" created

After the deployment you will see at your management UI the new deployed service ``:

https://YOUR-OS-MANAGEMENT-URL/console/project/my-project/overview

openshift management consol run-only service

Over the URL you can look and control the fresh deployed container via the web-vnc interface:

http://my-run-only-pod-my-project.YOUR-OS-URL/?password=vncpassword

openshift container via webvnc

Build & Run your own image

If you want to build the image in your own infrastructure just use the configuration openshift.headless-vnc.buildandrun.yaml:

oc process -f openshift.headless-vnc.buildandrun.yaml -v APPLICATION_NAME=my-centos-xfce-image,SOURCE_DOCKERFILE=Dockerfile.centos.xfce,SOURCE_REPOSITORY_REF=master | oc create -f -
# service "my-centos-xfce-image" created
# route "my-centos-xfce-image" created
# imagestream "my-centos-xfce-image" created
# buildconfig "my-centos-xfce-image" created
# deploymentconfig "my-centos-xfce-image" created

Now a fresh image build will be triggerd, see:

https://YOUR-OS-MANAGEMENT-URL/console/project/my-project/browse/builds/my-centos-xfce-image/my-centos-xfce-image-1?tab=logs

openshift headless vnc docker image build

After the image is successfully built, openshift will autmaticly will deploy it as new service:

https://YOUR-OS-MANAGEMENT-URL/console/project/my-project/overview

openshift management consol build own image service

After the deployment, you you can look and control the fresh deployed container via the web-vnc interface:

http://my-centos-xfce-image.YOUR-OS-URL/?password=vncpassword

![openshift container via webvnc](../.pics/os_container_webvnc.p

Contact

For questions, professional support or maybe some hints, feel free to contact us via testautomatisierung@consol.de or open an issue.

The guys behind:

ConSol Software GmbH
Franziskanerstr. 38, D-81669 München
Tel. +49-89-45841-100, Fax +49-89-45841-111
Homepage: http://www.consol.de E-Mail: info@consol.de