-
Notifications
You must be signed in to change notification settings - Fork 23
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
1.2.0 can't download in environments that don't have external services available #19
Comments
Can you try if running the download without the mix task fixes your problem? mix run --no-start -e "UAInspector.Downloader.download()" Depending on your configuration this should work without starting any applications. Until there is a fix to have a configuration of "applications required for the mix task to work" in place instead of just starting everything. |
I think I have a fix that does not require any configuration changes but this time it should get some proper verification before breaking other things: https://github.com/elixir-inspector/ua_inspector/tree/v1.2 This should only try to load the code required for the initializer modules without starting the complete application. Can you verify this is the case? /ping @smaximov it would be great if you could also test this as it might affect you and I do no longer trust my simple local test app for this stuff :) |
A bug in 1.2.0 tries to start the whole application by default, which is problematic in the context of a Dockerfile. See elixir-inspector/ua_inspector#19
Closing as this should be no issue anymore since release |
The download task fails if the Elixir application can't fully start when using ua_inspector 1.2.0.
If the Elixir application depends on external services to boot (for example a postgres database), and the database is not reachable, then the download task fails.
This appears to be a new requirement in 1.2.0, as in 1.1.0 this didn't happen.
This breaks my build process because it involves building docker images. The docker image runs
mix ua_inspector.download
during build, but allows no external connections, therefore the application fails to boot and the build fails.The text was updated successfully, but these errors were encountered: