Without changing either the .drone.yml or the Dockerfile, build stops now at this step without any warnings or error messages:
---> 7386dc0d3761 Step 3/16 : RUN npm i && mkdir /ng-app && mv ./node_modules ./ng-app
---> Running in 586cb8e1d285 time="2020-04-22T11:06:45Z" level=info msg="shim containerd-shim started" address="/containerd shim/moby/586cb8e1d285dc84838a3b858b95aceb4a0fb054a766e9dfcad356ae68512d86/shim.sock" debug=false pid=294
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this
package is dedicated to the legacy v1
npm WARN deprecated [email protected]: request has been deprecated, see
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3
with 15x less dependencies.
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+. Upgrade to fsevents
2 with massive improvements.
And from there it timeouts (whatever that timeout may be 15 minutes - 1 hour). Of course nothing is actually built and pushed to the docker registry.
Drone debug variable is set to true but does not produce any output.
One thing that jumps out is a spacing problem in your yaml. You have plugin settings that are not defined in the settings section of your pipeline. Make sure you have the correct indentation as show below:
also note that a timeout generally indicates a network timeout. If docker push running inside the official docker-in-docker container hangs, that is probably a question for the docker folks. There is nothing inherent to Drone that would cause a docker push to hang.
why does docker build hang when run inside my Pod on Kubernetes?
My guess is that if we showed the output to the Docker maintainers, they would also point out that network calls (to npm) appear to be hanging and this could be a network issue, which would need to be triaged at the kubernetes layer.
Pipeline steps are plain old containers running inside regular Kubernetes Pods. There is nothing inherent to how Drone creates Pods that would cause programs running inside containers to hang.