D4no0
Cannot build project with c files with hexpm docker images
I am trying to use docker images built by bob and uploaded to dockerhub in the hexpm repo in combination with gitlab runners to automate tests and thing like credo. I have exqlite in my project and it is compiled from source at the moment.
I have tried to use several images so far:
- hexpm/elixir:1.15.5-erlang-26.0.2-ubuntu-focal-20230126
- hexpm/elixir:1.15.5-erlang-26.0.2-debian-bullseye-20230612-slim
It seems that none of these images contains the utilities like make to build from source. I was able to fix this by installing build-essentials manually, however I am not a big fan of this solution.
Is this the expected behavior? Shouldn’t these images contain all the prerequisites for building elixir projects?
Marked As Solved
LostKobrakai
You’d be surpised how often people don’t run releases, even if it’s not best practise.
Also even if you include built tools. Where do you start, where do you stop. hexpm build for multiple OSes, so using the os default will yield different results. Using a custom subset also needs (additional) maintenance across OSes. Now make might sound simple, but then people might want to compile rustler dependencies and need rust/cargo, …. I personally find it cleaner to just add erlang/elixir to the base images and leave the rest to the users, who actually knows what they need.








