Questions Tagged With dockerhttps://answers.axonivy.com/tags/docker/?type=rss&user=John%20Moserquestions tagged <span class="tag">docker</span>enTue, 12 Nov 2019 03:57:38 -0500Docker, global variables, app.yamlhttps://answers.axonivy.com/questions/4162/docker-global-variables-app-yaml<p>Dear Ivy Team</p> <p>It looks like there are 3 places where the global vars can be set : - inside IAR - in DB - in app.yaml</p> <p>So what is the order how Ivy is looking for the global vars ?</p> <p>Thanks &amp; Regards, John Moser</p>John MoserTue, 12 Nov 2019 03:57:38 -0500https://answers.axonivy.com/questions/4162/docker-global-variables-app-yamldockerglobalvariableDocker, applications folder, deploymenthttps://answers.axonivy.com/questions/4154/docker-applications-folder-deployment<p>Dear Ivy team</p> <p>When we are building the KLARA image in windows, we get an issue with long file names. We have decided to keep the deployed IARs inside the image. Therefore the deployed apps are part of it. The folder structure looks like this :</p> <pre><code>jam:~/.../applications/luz$ ls -ltr total 80 drwxr-xr-x 3 jam jam 4096 Mai 1 2019 luz_components drwxr-xr-x 3 jam jam 4096 Mai 1 2019 luz_docs_process drwxr-xr-x 3 jam jam 4096 Mai 1 2019 luz_finance drwxr-xr-x 3 jam jam 4096 Mai 1 2019 luz_xhrm_processes </code></pre> <p>and each folder contains all the Ivy stuff. So no wonder build under Windows is an issue due to long file names.</p> <p>Question : What is needed in these folders ? can we skip some folders/files ?</p> <p>Request for 7.3.2 : Can you provide a "applications"-less Ivy version which does not require 7.4 ? </p> <p>Best regards John Moser</p>John MoserFri, 08 Nov 2019 02:34:12 -0500https://answers.axonivy.com/questions/4154/docker-applications-folder-deploymentdockerdeploymentDocker, set permissions by yaml filehttps://answers.axonivy.com/questions/4001/docker-set-permissions-by-yaml-file<p>Hi Ivy Team</p> <p>Is it possible to configure the permissions also by a yaml file ?</p> <p>Regards John</p>John MoserThu, 19 Sep 2019 11:10:44 -0400https://answers.axonivy.com/questions/4001/docker-set-permissions-by-yaml-filedockerivyDocker, pass Ivy license as env prophttps://answers.axonivy.com/questions/3999/docker-pass-ivy-license-as-env-prop<p>Dear Ivy team</p> <p>Is it possible to pass the Ivy license via env prop ? </p> <p>Reason for my question : as you might know we in KLARA want to build our own image. If the license has to be provided as a file in a certain directory then our image, which is hosted somewhere in the cloud, contains the license. May be not so nice from your point of view.</p> <p>The idea is that we store the license as a secret and inject it at startup of the image.</p> <p>Regards John</p>John MoserThu, 19 Sep 2019 04:51:42 -0400https://answers.axonivy.com/questions/3999/docker-pass-ivy-license-as-env-propdockerivylicenseDocker, Migration 7.2.1 to 7.3.1https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1<p>Hi Ivy Team</p> <p>I am getting following error message during Ivy startup after I migrated to the 7.3.1 image :</p> <p>java.lang.Exception: The system database (jdbc:<a>postgresql://10.172.0.9:5432/ivysystemdb_7)</a> with all tables already exists (Version: 50). But was created with a older version of the ivy Engine. at ch.ivyteam.ivy.server.configuration.command.CreateDbCommand.checkIfCreationNeeded(CreateDbCommand.java:114) at ch.ivyteam.ivy.server.configuration.command.CreateDbCommand.createSystemDatabase(CreateDbCommand.java:63) at ...</p> <p>What has to be done to fix this problem.</p> <p>Thanks &amp; Regards John</p>John MoserThu, 29 Aug 2019 10:33:45 -0400https://answers.axonivy.com/questions/3952/docker-migration-7-2-1-to-7-3-1enginedockerivyDocker, set admin client / system db values via yaml filehttps://answers.axonivy.com/questions/3892/docker-set-admin-client-system-db-values-via-yaml-file<p>Dear Ivy Team</p> <p>In the Non-Docker world, we have a deployment IAR, which writes config values fed via a script.</p> <p>With Docker we want to avoid that. The global variables we already configure them via app.yaml. What would be (in the future ?) the best way to configure permissions, iwa_applicationproperty, etc</p> <p>Best regards, John</p>John MoserTue, 16 Jul 2019 11:34:51 -0400https://answers.axonivy.com/questions/3892/docker-set-admin-client-system-db-values-via-yaml-filedockerDocker, Rerun image with IAR installationhttps://answers.axonivy.com/questions/3891/docker-rerun-image-with-iar-installation<p>Dear Ivy Team</p> <p>In your example setup, the ivysystemdb exists as an image and is therefore created from scratch every time docker-compose is run. That means you can run the same image as many times as you want.</p> <p>If we do that in our Dev environment, we are running into the versioning problem (I think), which prevents to rerun of the same image multiple times (Error : The process model version '1' of process model 'luz_web' of application 'luz' is currently unavailable because of maintenance.) </p> <p>Since our image does the installation as well, it can't be "used" more then one time, which means for each restart we would need a new build of a new version of our app.</p> <p>Or do I miss something ?</p> <p>Best regards John</p>John MoserMon, 15 Jul 2019 12:20:24 -0400https://answers.axonivy.com/questions/3891/docker-rerun-image-with-iar-installationdockerDocker, dropins, AuthenticationValvehttps://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalve<p>Hi Ivy Team</p> <p>I am building a Docker image based on axonivy/axonivy-engine:7.2.1. In our project we have a few JARs which should go into the dropins folder but during Ivy startup I get the following error :</p> <pre><code>14:13:05.368 ERROR [org.apache.tomcat.util.digester.Digester] [localhost-startStop-1] Begin event threw exception java.lang.ClassNotFoundException: com.axonivy.auth.valve.AuthenticationValve cannot be found by ch.ivyteam.tomcat_8.5.34.201810151000 ... 4:13:05.380 ERROR [...apache.catalina.startup.ContextConfig] [localhost-startStop-1] Parse error in context.xml for [/ivy] org.xml.sax.SAXParseException; systemId: file:/usr/lib/axonivy-engine-7x/webapps/ivy/META-INF/context.xml; lineNumber: 13; columnNumber: 66; Error at (13, 66) : com.axonivy.auth.valve.AuthenticationValve cannot be found by ch.ivyteam.tomcat_8.5.34.201810151000 </code></pre> <p>So far I did the following:</p> <p>1) Dockerfile:</p> <pre><code>COPY --chown=ivy:ivy axonivy7-engine-folder-setup/dropins/* /usr/lib/axonivy-engine-7x/dropins/ </code></pre> <p>2) Check if files exist after Ivy startup:</p> <pre><code>ivy@22ae6389e9e5:/usr/lib/axonivy-engine-7x/dropins$ ls -ltr total 956 -rwxr-xr-x 1 ivy ivy 2028 Mar 8 2018 README.html -rwxr-xr-x 1 ivy ivy 962431 Jul 19 2018 com.axonivy.auth.valve.AuthenticationValve_1.0.0.201807190929.jar -rwxr-xr-x 1 ivy ivy 1622 Aug 1 2018 workflow.klara_patchNoBusinessCaseQuery_1.0.0.201807311434.jar -rw-r--r-- 1 ivy ivy 8078 Nov 5 2018 webserver.rest.extension.patch_1.0.0.201805241153.jar </code></pre> <p>3) Check if JARs are listed using ss in console, but all the JARs in dropins are not listed:</p> <p>Axon.ivy Engine is running and ready to serve. [19778ms] Type 'shutdown' and confirm with ENTER to stop the running engine instance ss "Framework is launched."</p> <pre><code>id State Bundle 0 ACTIVE org.eclipse.osgi_3.13.0.v20180409-1500 Fragments=2, 1 1 RESOLVED ch.ivyteam.ivy.osgi.classpatcher_7.2.1.201811131504 Master=0 2 RESOLVED org.eclipse.osgi.compatibility.state_1.1.100.v20180331-1743 Master=0 3 ACTIVE org.eclipse.equinox.simpleconfigurator_1.3.0.v20180502-1828 </code></pre> <p>As far as I understood, one should copy the JARs into the dropins folder and it should work</p> <p>Thanks &amp; Regards John</p>John MoserFri, 31 May 2019 10:29:36 -0400https://answers.axonivy.com/questions/3831/docker-dropins-authenticationvalvedockerconfigurationivyDocker, Global Properties, Placeholder, app.yamlhttps://answers.axonivy.com/questions/3817/docker-global-properties-placeholder-app-yaml<p>Hi Ivy Team</p> <p>Assuming I have a global prop such as :</p> <p>myGlobalProp: <a href="http://myIP:1234/whatever">http://myIP:1234/whatever</a></p> <p>myIP is different for Dev, Test and Prod. Is there a way to "inject" myIP at startup of the Docker image ?</p> <p>Or generally:</p> <p>If I want to build an image which should be deployed in Dev, Test and Prod, is there a way to parameterize all the config files used for the Ivy Engine (yaml, xml, etc.) ?</p> <p>Thanks &amp; Regards John</p>John MoserMon, 20 May 2019 11:20:27 -0400https://answers.axonivy.com/questions/3817/docker-global-properties-placeholder-app-yamlenginedockerconfigurationivyDocker, prevent container being stopped after an exceptionhttps://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exception<p>Hi Ivy team</p> <p>Is there a switch or something to keep the container running even if there was a (fatal) exception at boot time of Ivy ?</p> <p>Currently it's slightly painful to debug ...</p> <p>Thanks &amp; Regards John Moser</p>John MoserWed, 15 May 2019 11:54:13 -0400https://answers.axonivy.com/questions/3802/docker-prevent-container-being-stopped-after-an-exceptiondockerivyDocker, Dockerfile, what USER to applyhttps://answers.axonivy.com/questions/3801/docker-dockerfile-what-user-to-apply<p>Hi Ivy team</p> <p>We want to build our own image and we are running in some troubles regarding the USER :</p> <p>FROM axonivy/axonivy-engine:7.2.1</p> <p>USER root or ivy or ... ? &lt;--- which one to apply ?</p> <p>COPY ... CMD ... etc.</p> <p>Thanks &amp; Regards John Moser</p> <p>PS: can someone with enough "reputation" put dockerfile into the tag list ?</p>John MoserWed, 15 May 2019 11:25:17 -0400https://answers.axonivy.com/questions/3801/docker-dockerfile-what-user-to-applydockerdockerfileDocker, IAR deploymenthttps://answers.axonivy.com/questions/3800/docker-iar-deployment<p>Hi Ivy team</p> <p>I have a zip file with IARs (but w/o app.yaml) and I use COPY to copy the zip file to the deploy folder of the Ivy engine, where it should be deployed at startup - according to the doc.</p> <p>a) is this procedure correct ? b) If yes then I get -&gt; Caused by: java.nio.file.FileSystemNotFoundException: /usr/lib/axonivy-engine-7x/applications/projects/authentication_tool_ivy/1.zip</p> <p>There is indeed a authentication_tool_ivy-7.2.0-SNAPSHOT.iar in the zip file.</p> <p>Any idea why this error happens ? Any more specific description how the files have to be named ? Is the order how the IARs are listed in the zip file relevant ?</p> <p>Thanks &amp; Regards John Moser</p>John MoserWed, 15 May 2019 11:10:37 -0400https://answers.axonivy.com/questions/3800/docker-iar-deploymentdockerdeployment