{"id":948,"date":"2020-03-17T15:00:49","date_gmt":"2020-03-17T13:00:49","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=948"},"modified":"2020-03-24T14:05:33","modified_gmt":"2020-03-24T12:05:33","slug":"dockerfiles-for-wincc-oa-based-on-centos","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=948","title":{"rendered":"WinCC OA on Docker, Dockerfiles and Howto&#8217;s&#8230;"},"content":{"rendered":"<p>This <a href=\"https:\/\/github.com\/vogler75\/winccoa-images\">repository<\/a> on Github contains Dockerfiles and samples to build Docker images for WinCC OA products.<\/p>\n<h2>Build Docker Image<\/h2>\n<p>Download and unzip the CentOS WinCC OA rpm&#8217;s to the centos\/software directory.<\/p>\n<p>Only put those WinCC OA rpm&#8217;s into the directory which you want to have installed in your image. For a minimum image you only need the base packag of WinCC OA.<\/p>\n<p><code>WinCC_OA_3.16-base-rhel-0-17.x86_64.rpm<\/code><\/p>\n<p>Build your WinCC OA Docker image with:<\/p>\n<p><code>docker build -t winccoa:3.16 .<\/code><\/p>\n<h2>WinCC OA Project in a Container<\/h2>\n<p>The project should be mounted on <strong>\/proj\/start<\/strong> as a volume to your docker container.<\/p>\n<p>And you may also mount a shield file to your docker container.<\/p>\n<p>Example how to startup a WinCC OA project in a container:<\/p>\n<pre><code>docker run -d  \n  --name winccoa  \n  --hostname winccoa-server  \n  -v ~\/shield.txt:\/opt\/WinCC_OA\/3.16\/shield.txt  \n  -v \/proj\/DemoApplication_3.16:\/proj\/start  \n  -p 5678:5678  \n  winccoa:3.16 <\/code><\/pre>\n<h2>WinCC OA Gedi in a Container<\/h2>\n<p>To start a WinCC OA client application like a Gedi or a User-Interface you have to adapt your config file so that the proxy settings point to the WinCC OA server container. You can just create a copy of your config file (e.g. config.ui) and adapt the settings.<\/p>\n<pre><code>[general] \ndata = \"winccoa-server\" \nevent = \"winccoa-server\" \nmxProxy = \"winccoa-server &lt;your-docker-host-name&gt;:5678 cert\" <\/code><\/pre>\n<p>Then you can startup a Gedi\/Ui with:<\/p>\n<pre><code>docker run --rm  \n-e DISPLAY=$DISPLAY  \n-v \/tmp\/.X11-unix:\/tmp\/.X11-unix  \n-v \/proj\/DemoApplication_3.16:\/proj\/default  \n-v \/proj\/DemoApplication_3.16\/config\/config.ui:\/proj\/default\/config\/config  \nwinccoa:3.16  \nWCCOAui -autoreg -m gedi -proj default <\/code><\/pre>\n<p>Sure you can also use a copy of your project directory (or a git checkout if you use git) and adapt the config file.<\/p>\n<h2>Start Project Administration as Container<\/h2>\n<p>With the Project Administration you can create a new project in the \/proj directory.<\/p>\n<pre><code>docker run -ti --rm \n-e DISPLAY=$DISPLAY \n-v \/tmp\/.X11-unix:\/tmp\/.X11-unix \n-v \/proj:\/proj \nwinccoa:3.16 \nWCCOAui -projAdmin<\/code><\/pre>\n<h2>Distributed Managers and Kubernetes<\/h2>\n<p>For sure what we have done with the Gedi can also be done with Control-Managers and Drivers. And in theory that can also be done with Kubernetes and so you can run your SCADA project in a Kubernetes Cluster.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This repository on Github contains Dockerfiles and samples to build Docker images for WinCC OA products. Build Docker Image Download and unzip the CentOS WinCC OA rpm&#8217;s to the centos\/software directory. Only put those WinCC OA rpm&#8217;s into the directory which you want to have installed in your image. For a minimum image you only &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=948\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WinCC OA on Docker, Dockerfiles and Howto&#8217;s&#8230;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,34,3],"tags":[],"class_list":["post-948","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-docker","category-wincc-oa"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=948"}],"version-history":[{"count":2,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/948\/revisions"}],"predecessor-version":[{"id":954,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/948\/revisions\/954"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}