riverrun / argon2_elixir

Elixir wrapper for the Argon2 password hashing algorithm
Apache License 2.0
229 stars 34 forks source link

Support musl for Alpine environment #47

Closed msudgh closed 3 years ago

msudgh commented 3 years ago

I'm already trying to use elixir:1.11.4-alpine but agron2 couldn't be compiled.

Logs:

could not compile dependency :argon2_elixir, "mix compile" failed. You can recompile this dependency with "mix deps.compile argon2_elixir", update it with "mix deps.update argon2_elixir" or clean it with "mix deps.clean argon2_elixir"
** (Mix) "make" not found in the path. If you have set the MAKE environment variable,
please make sure it is correct.

Make tool is not included in Alpine images cause of their nature, It would be useful if argon supports other build tools.

riverrun commented 3 years ago

I think you might get more help if you ask at elixir forum, where you might get some help with the setup.

msudgh commented 3 years ago

I thought its argon2 compilation problem. I revised how the container was scaffolded and decided to follow another approach. All works fine. Thanks, I close this issue.

riverrun commented 3 years ago

Great! Glad to hear you got it working.

ybycode commented 3 years ago

I'm facing the same issue, where I can't compile from a docker image based on Alpine Linux. Would you mind sharing how you managed @msudgh?

Edit: was an issue with docker v19.03, not anymore with docker v20.10. See https://github.com/moby/moby/pull/41381