-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] missing dependency teipublisher #4756
Comments
Based on that To troubleshoot further, it would be great to know:
|
The logging doesn't show the URL. |
This seems to be common misconception. @eduarddrenth @joewiz Autodeploy does not resolve dependencies, by design. For autodeploy to succeed to install a package with declared dependencies all of them need to be:
If you want to have declared dependencies be resolved from a package repository (being it the public package repository or a private one) you have to use other means of installing the package (upload via dashboard, |
Thanks, may I ask why this is? It seems quite logical that dependencies for a package are being resolved upon installation, whether via autodeploy or otherwise. |
The rationale why autodeploy does not resolve dependencies was explained to me to allow offline installations that do not require any internet connection. Installation via xst is scriptable and will resolve dependencies. At the moment this will only work for packages that are available on the public package repository. |
good to know! Is xst by default available in exist-db docker images (which are distroless)? |
No, it's an external tool to work with any number of exist-db instances. Typically you would install it globally on your development machine. But you can declare it as a dependency in package.json and use it in an npm script as well. |
@eduarddrenth can we close this issue? |
xst works, but I need a running exit-db for it. This issue gives me a lot of trouble, I need to be able to build an exist-db image that includes my own xar and the dependencies it needs. Autodeploy doesn't work, there is no "apt install", xst is a runtime option for which I need to setup a separate "init" environment/container, xst install via multistage also isn't an option. Why can't autodeploy just retrieve dependencies? |
moreover because of distroless curl, wget, shell are also no options. |
@eduarddrenth at the moment this is the case. I will bring this up in next weeks community call. We could change autodeploy to attempt to retrieve dependencies. This would then also mean that the repository can be, or better has to be, set in For the time being you still do have the option to provide all dependencies of your app in autodeploy in a multi-stage docker build. |
@eduarddrenth I just read through this issue and was surprised I did not include that information before.
I know this is far from ideal. One of the reasons why I use |
Thanks, I know this option and skipped it sofar because I do not want to manually figure out and download dependencies, manually manage versions of dependencies or manually ensure correct install order. But perhaps this is my best option for now. I am also considering an xst init script in a dedicated docker container. |
I choose the option to prepare libs manually because it gives me the advantage that the image is ready to run. Perhaps I'll invest some time in #4553 to properly solve this issue. Shouldn't be too hard, because the functionality is already there in the dashboard/package manager. |
Describe the bug
During docker build teipublisher dependency cannot be found:
Expected behavior
To Reproduce
corpora-1.0.xar.zip
docker build --progress plain -t fails:1 .
Context (please always complete the following information)
The text was updated successfully, but these errors were encountered: