Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: sergio on December 03, 2021, 04:45:46 AM

Title: Best way of running containerized applications (Docker)
Post by: sergio on December 03, 2021, 04:45:46 AM
Hi,

In our application we are running Metashape tasks in a docker container.
I noticed that every time I stop and start the docker, I get a license error (wrong host for license), so I have to deactivate and reactivate it again. This is not a problem for testing, but it will be a problem when deploying our app. What's the best way of running a containerized application? Should I activate the license in the docker before running the application and then deactivate it after the application is done? I would prefer not to include the license number in the code. Also, if we use this option, we will not be able to run our tasks in parallel (license will be limited to one docker instance).

Any advice on this?