I am developing scala inside a docker container with Gradle. But when after I change my code and run ./gradlew azkabanZipRain -p <package-name>
, the building and packaging runs for almost 1 hour, which is incredibly long. The building and packaging normally takes 2 to 3 mins to finish outside docker on the host.
Does anyone know why?
The container has 6 cpus and 20G memory, which is far more than it needs. But still very slow. The first 89% of the process is pretty fast, which can be finished around 1 mins. But from 90% to finish, it will take 30 mins to a hour. Really weird. The two steps that cost lots of time are :glencoePublishZip and :azkabanZipPURPLE.
It seems it takes forever building zip files insider docker.