The docker environment I made was too slow, so I speeded it up
As conclusion Do not run a lot of reads and writes on the volume mount Was the most effective
--MacOS Mojave version 10.14.6
When run on the host machine: 20 minutes Before efficiency: 1 hour After efficiency: 20 minutes
https://docs.docker.jp/docker-for-mac/osxfs-caching.html
File access set to volume mount seems to be very slow in docker for Mac It seems that it is an option to speed up instead of ensuring consistency between the host machine and the container.
I couldn't speed it up enough to experience it.
Because the project code managed by git is huge COPY to container instead of setting to volume mount
This makes unittest much faster It's not much different from running it on the host machine
Do not run a lot of reads and writes on the volume mount
Recommended Posts