Hi Ivy Team.

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

but now I use docker to create a docker file and and then create a docker container base on that docker image docker ifle:

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

after create docker container I run on browser, it only show engine server example, don't show mytest.iar

with error:

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.

asked 06.11.2019 at 22:02

tuannv's gravatar image

tuannv
(suspended)
accept rate: 0%

edited 07.11.2019 at 02:09

Alex%20Suter's gravatar image

Alex Suter ♦♦
3.1k122247


Your Dockerfile has some interesting stuff in it.

1) MAINTAINER is depreacted

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 E:/Axon7.4/AxonIvyDesigner7.4.0.1909161423_Windows_x64/workspace/mytest/Portal/makes no sense at all.

3) There is no need to change to rights of the deploy folder. The deploy folder belongs to the ivy user which is part of the container.

4) Adding your *.iar file to the the special windows folder in the container has no effect.

5) ADD target/mytest-1.0.0-SNAPSHOT.iar deploy seems to work partly, but you need at least to set the correct user and group of the deployed file with --chown=ivy:ivy.

6) Exposing port 8080 in your Dockerfile is not needed, this is already done by the base image (axonivy-engine).

I think your file should look more like this:

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

For more information have a look at the Dockerfile of the axonivy/axonivy-engine image and the example how to deploy an application to the engine (this is similar to an ivy archive).

link

answered 07.11.2019 at 02:23

Alex%20Suter's gravatar image

Alex Suter ♦♦
3.1k122247
accept rate: 84%

edited 07.11.2019 at 02:24

Thank you every much. you're right I build it success full

link

answered 07.11.2019 at 03:34

tuannv's gravatar image

tuannv
(suspended)
accept rate: 0%

1

please accept answer ;)

(07.11.2019 at 04:04) Alex Suter ♦♦ Alex%20Suter's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×20

Asked: 06.11.2019 at 22:02

Seen: 1,785 times

Last updated: 07.11.2019 at 04:04