<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: I can't integrated axon-ivy engine with window nano server code in a image on docker</title><link>https://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-docker</link><description>&lt;p&gt;Dear Ivy team, &lt;/p&gt;
&lt;p&gt;I use window 10 and installed Docker tool.
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/KjGEs_baJ1saX.png"&gt;&lt;/p&gt;
&lt;p&gt;Because our axon ivy's project use &lt;strong&gt;axon-ivy engine&lt;/strong&gt; 7.0.1. it have some &lt;strong&gt;lib call from window's library&lt;/strong&gt;. So I have to create a image can run on &lt;strong&gt;linux container&lt;/strong&gt; and still call lib of window OS success&lt;/p&gt;
&lt;p&gt;I use Docker to build a image include axon-ivy engine and window core in docker hub:&lt;/p&gt;
&lt;p&gt;my docker file is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FROM mcr.microsoft.com/windows/nanoserver:1903
FROM dgauch/axonivy-engine:7.0.1
Expose 8082
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I use one of window docker hubs :
 1. microsoft/windowscore
 2. microsoft/nanoserver&lt;/p&gt;
&lt;p&gt;But I only can run  "&lt;strong&gt;dgauch/axonivy-engine&lt;/strong&gt;" if I switched to docker linux container then can't run
mcr.microsoft.com/windows/servercore:ltsc2019
there is a error:   no matching manifest for linux/amd64 in the manifest list entries.&lt;/p&gt;
&lt;p&gt;When I switched to window container at docker tool desktop. I can run
mcr.microsoft.com/windows/nanoserver:1909 is succesful.&lt;/p&gt;
&lt;p&gt;but there are error when run docker for &lt;strong&gt;dgauch/axonivy-engine&lt;/strong&gt;. There are a error: image operating system "linux" cannot be used on this platform&lt;/p&gt;
&lt;p&gt;How can I do integrate two image axon-ivy engine and window core to a image, that can run every where on linux or window system ?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-docker" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 20 Nov 2019 04:07:06 -0500</lastBuildDate><item><title>Comment by Alex Suter on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-docker#4177</link><description>&lt;p&gt;you can not use our axonivy-engine image and run it as a windows container. how should this work?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Wed, 20 Nov 2019 04:07:06 -0500</pubDate><guid>https://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-docker#4177</guid></item><item><title>Comment by tuannv on Alex Suter's answer</title><link>https://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-docker#4176</link><description>&lt;p&gt;I tried with axonivy-engine:latest, but it doesn't work
so your mean we can't build a image of both axon-ivy engine and window nano core . isn't it ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tuannv</dc:creator><pubDate>Wed, 20 Nov 2019 03:25:16 -0500</pubDate><guid>https://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-docker#4176</guid></item><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-docker/4175</link><description>&lt;p&gt;We can not recommend to run Axon.ivy Engine 7.0 in Docker Container. Especially the outdated version 7.0.1. You will miss a lot of features, which are specially introduced for a container environement.&lt;/p&gt;
&lt;p&gt;Currently we do not have a windows container variant for Axon.ivy Engine. But we may should provide one (&lt;a href="https://jira.axonivy.com/jira/browse/"&gt;XIVY-3443&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Your attempt can not work. You can not have multiple &lt;code&gt;FROM&lt;/code&gt; for the same target image. Currently what you are doing is a so called &lt;a href="https://docs.docker.com/develop/develop-images/multistage-build/"&gt;multistage build&lt;/a&gt;. The first stage is&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FROM mcr.microsoft.com/windows/nanoserver:1903
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the second stage is &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FROM dgauch/axonivy-engine:7.0.1
Expose 8082
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You first stage has completely no impact to the target docker image.&lt;/p&gt;
&lt;p&gt;And do not use &lt;strong&gt;dgauch/axonivy-engine&lt;/strong&gt; for production. This docker image is not supported by us.&lt;/p&gt;
&lt;p&gt;Note: You can not run linux container in a windows container environment and vice versa.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Wed, 20 Nov 2019 03:09:58 -0500</pubDate><guid>https://answers.axonivy.com/questions/4174/i-can-t-integrated-axon-ivy-engine-with-window-nano-server-code-in-a-image-on-docker/4175</guid></item></channel></rss>