Closed whitered closed 5 years ago
This almost certainly occurs because exleveldb uses a NIF, which is not being recompiled once the object file is built on the host (i.e. you fetch deps and compile on the host, then try to build and run with docker, the latter build does not recompile the NIF). You can address this by adding the _build
and deps
directories to .dockerignore
in the root of the project, or for a more specific fix for exleveldb, you could add the deps/exleveldb/priv
directory to .dockerignore
(assuming that is where the object files for the NIF are compiled to).
I've tried this and it didn't help. Also I have mix deps.clean --all
in the dockerfile
https://github.com/whitered/distillery-docker/commit/a21059c6b9d71bec2bd940ea304fb1bd3644b14b
Here is a very simple app that only uses exleveldb library - https://github.com/whitered/distillery-docker
I'm trying to run a docker image following this guide: https://hexdocs.pm/distillery/guides/working_with_docker.html
make docker.build docker.run
The app in the docker container crashes with following log: