<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://www.xlayer.co.za/forum/extern.php?action=feed&amp;tid=99&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[SXI Forum / SXIWebServices-2.1 in Docker]]></title>
		<link>https://www.xlayer.co.za/forum/viewtopic.php?id=99</link>
		<description><![CDATA[The most recent posts in SXIWebServices-2.1 in Docker.]]></description>
		<lastBuildDate>Tue, 15 Oct 2019 14:59:59 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[SXIWebServices-2.1 in Docker]]></title>
			<link>https://www.xlayer.co.za/forum/viewtopic.php?pid=156#p156</link>
			<description><![CDATA[<p>Requirements for running the SXIWebServices in Docker:</p><ol class="decimal"><li><p>Install Docker</p><ul><li><p>Follow the steps to download docker from this <strong><a href="https://docs.docker.com/v17.09/engine/installation/#supported-platforms" rel="nofollow">link</a></strong> based on your operating system.</p></li></ul></li><li><p>Go to docker settings on your local machine and perform the following:</p><ul><li><p>For <strong>Windows</strong> go to docker settings and on the &quot;Daemon&quot; tab click on the advanced toggle switch and add the following to the json given: </p><div class="codebox"><pre><code>&quot;insecure-registries&quot;: [&quot;xlayer.co.za:5000&quot;]</code></pre></div></li><li><p>For <strong>Linux</strong> edit the &quot;daemon.json&quot; file. The default location is &quot;/etc/docker/daemon.json&quot;. (If the file cannot be found, create it.) then add the following code:</p><div class="codebox"><pre><code>{
  &quot;insecure-registries&quot; : [&quot;xlayer.co.za:5000&quot;]
}</code></pre></div></li></ul></li><li><p>To download the docker image and run it, perform the following:</p><ul><li><p>For <strong>Windows</strong> in an administrator CMD execute the following command:</p><div class="codebox"><pre><code>docker run -p 8080:8080 -d --name SXIWebService -v C:/SXI/XPress/XmlOut:/opt/SXI/XPress/XmlOut -v C:\SXI\WebServiceLogs:/opt/SXI/WebServiceLogs xlayer.co.za:5000/sxiws:2.1</code></pre></div></li><li><p>For <strong>Linux</strong> in a terminal execute the following command:</p><div class="codebox"><pre><code>sudo docker run -p 8080:8080 -d --name SXIWebService -v /opt/SXI/XPress/XmlOut:/opt/SXI/XPress/XmlOut -v /opt/SXI/WebServiceLogs:/opt/SXI/WebServiceLogs xlayer.co.za:5000/sxiws:2.1</code></pre></div></li><li><p>A short explanation:<br />&quot;-v <span style="color: #FF0000">C:/SXI/XPress/XmlOut</span>:<span style="color: blue">/opt/SXI/XPress/XmlOut</span> -v <span style="color: #FF0000">C:\SXI\WebServiceLogs</span>:<span style="color: blue">/opt/SXI/WebServiceLogs</span>&quot;<br />The above argument mounts a directory on your local computer with a directory in the container. The parts highlighted in <span style="color: #FF0000">red</span> point to the directory on your local computer. The parts highlighted in <span style="color: blue">blue</span> point to the directory in the container. <br /><strong><span style="color: #FF0000">NB*</span></strong> if any of the directories highlighted in <span style="color: #FF0000">red</span> do not exist you will get an ERROR. Make sure they are pointing to the correct folder path that exists. Remember that the above example is for Windows however the same applies for Linux as well.</p></li></ul></li></ol><p>After performing these steps Tomcat will be up and running and all SXI web services will be available. You can access them by pointing your browser to <strong>&quot;localhost:8080/SXIWebServices-2.1/&quot;</strong>. The default user of the manager-gui for Tomcat is <strong>&quot;sxi&quot;</strong> and the password is our standard password.</p>]]></description>
			<author><![CDATA[dummy@example.com (MarekR)]]></author>
			<pubDate>Tue, 15 Oct 2019 14:59:59 +0000</pubDate>
			<guid>https://www.xlayer.co.za/forum/viewtopic.php?pid=156#p156</guid>
		</item>
	</channel>
</rss>
