I’m in the process of debugging this issue, but perhaps someone has shared the experience.
I evaluated the docker env inside minikube so it can use local images (ImageNeverPull). Then run docker build -t phoenix-app .
(the phoenix app is nothing more then a hello world)
At this point the container starts building but seems to slow down to extreme lengths on certain steps; e.g. one of these steps is
RUN mix deps.get (it finishes after 15 minutes or so)
RUN mix compile and
RUN mix local.hex --force && mix local.rebar --force
At inspection (minikube ssh && docker stats <image_id>) I see 100% CPU usage and nearly non existent network I/O, eventually the image build finishes, but it takes an incredible long time, while building the same image on my local machine (outside of minikube) is blazing fast. I also monitored resource usage of the kubernetes stack, but its far below the CPU, MEM and disk boundries available.
Update: memory consumption seems quite large the longer the process takes;