<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Docker container can't apply IAR newest</title><link>https://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newest</link><description>&lt;p&gt;Hi Ivy Team.&lt;/p&gt;
&lt;p&gt;I'm using axon ivy designer and engine. both of them user version 7.4.0
I create a dialog mytest and deploy int to folder deloyed in axon iv deploy 
It's success&lt;/p&gt;
&lt;p&gt;but now I use docker to create a docker file and and then create a docker container base on that docker image
docker ifle:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FROM axonivy/axonivy-engine:7.4.0
MAINTAINER Vantuan, tuan.nguyen@axonactive.com

RUN mkdir -p E:/Axon7.4/AxonIvyDesigner7.4.0.1909161423_Windows_x64/workspace/mytest/Portal/
RUN chmod 775 deploy
ADD target/*.iar E:/Axon7.4/AxonIvyDesigner7.4.0.1909161423_Windows_x64/workspace/mytest/Portal/
ADD target/mytest-1.0.0-SNAPSHOT.iar deploy
EXPOSE 8080
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;after create docker container I run on browser, it only show engine server example, don't show &lt;code&gt;mytest.iar&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;with error:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;axonivy-engine_1  | [ 75%] Background Jobs Stopper started [0ms]
axonivy-engine_1  | 01:59:33.338 ERROR [....ivy.deployment.internal.auto.scanner] [Deployment Queue]
axonivy-engine_1  |   '/var/lib/axonivy-engine-7x/deploy/mytest-1.0.0-SNAPSHOT.iar' not deployed. This file is not writable.
&lt;/code&gt;&lt;/pre&gt;</description><atom:link href="https://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newest" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 07 Nov 2019 04:04:18 -0500</lastBuildDate><item><title>Comment by Alex Suter on tuannv's answer</title><link>https://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newest#4149</link><description>&lt;p&gt;please accept answer ;)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Thu, 07 Nov 2019 04:04:18 -0500</pubDate><guid>https://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newest#4149</guid></item><item><title>Answer by tuannv</title><link>https://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newest/4148</link><description>&lt;p&gt;Thank you every much. you're right
I build it success full&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tuannv</dc:creator><pubDate>Thu, 07 Nov 2019 03:34:14 -0500</pubDate><guid>https://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newest/4148</guid></item><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newest/4147</link><description>&lt;p&gt;Your &lt;code&gt;Dockerfile&lt;/code&gt; has some interesting stuff in it.&lt;/p&gt;
&lt;p&gt;1) &lt;code&gt;MAINTAINER&lt;/code&gt; is &lt;a href="https://docs.docker.com/engine/reference/builder/#maintainer-deprecated"&gt;depreacted&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2) The official axonivy-engine image is a linux based image. It makes no sense to create any windows-style folders in your image. Creating paths like that &lt;code&gt;E:/Axon7.4/AxonIvyDesigner7.4.0.1909161423_Windows_x64/workspace/mytest/Portal/&lt;/code&gt;makes no sense at all. &lt;/p&gt;
&lt;p&gt;3) There is no need to change to rights of the &lt;code&gt;deploy&lt;/code&gt; folder. The &lt;code&gt;deploy&lt;/code&gt; folder belongs to the &lt;code&gt;ivy&lt;/code&gt; user which is part of the container.&lt;/p&gt;
&lt;p&gt;4) Adding your &lt;code&gt;*.iar&lt;/code&gt; file to the the special windows folder in the container has no effect.&lt;/p&gt;
&lt;p&gt;5) &lt;code&gt;ADD target/mytest-1.0.0-SNAPSHOT.iar deploy&lt;/code&gt; seems to work partly, but you need at least to set the correct user and group of the deployed file with &lt;code&gt;--chown=ivy:ivy&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;6) Exposing port 8080 in your &lt;code&gt;Dockerfile&lt;/code&gt; is not needed, this is already done by the base image (axonivy-engine).&lt;/p&gt;
&lt;p&gt;I think your file should look more like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FROM axonivy/axonivy-engine:7.4.0
LABEL maintainer="tuan.nguyen@axonactive.com"

ADD --chown=ivy:ivy target/mytest-1.0.0-SNAPSHOT.iar deploy
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For more information have a look at the &lt;a href="https://developer.axonivy.com/doc/latest/engine-guide/getting-started/docker.html"&gt;Dockerfile&lt;/a&gt; of the axonivy/axonivy-engine image and the &lt;a href="https://github.com/ivy-samples/docker-samples/tree/master/ivy-deploy-app"&gt;example&lt;/a&gt; how to deploy an application to the engine (this is similar to an ivy archive).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Thu, 07 Nov 2019 02:23:09 -0500</pubDate><guid>https://answers.axonivy.com/questions/4146/docker-container-can-t-apply-iar-newest/4147</guid></item></channel></rss>