docker-workflow-plugin icon indicating copy to clipboard operation
docker-workflow-plugin copied to clipboard

Issue when cat entrypoint takes time to execute

Open predivo opened this issue 5 years ago • 2 comments

Hello I have found a kind of issue when the entrypoint takes too much time to execute, in this case the 'cat' command that is checked in the code fails with a Error message. Anyway, the plugin keeps going successfully: see logs: ps: [entrypoint.sh, sudo, service, sshd, sshd-gen-keys-s, ssh-keygen]

Just waiting some time and retrying once solves this issue. see logs after retry: ps: [cat, sshd] -> works. Thanks to integrate such mechanism. Patrick

predivo avatar Jan 21 '20 08:01 predivo

hey @predivo, @Slavyanak, @DenesCs, @jcormier, @javafrog, @felipecrs did you find a solution/workaround for this? => my entrypoint takes about 30 seconds to get some credentials and unpack them... which would be really nice to have is a timeout here

studioj avatar Mar 15 '24 15:03 studioj

This issue doesn't block me so I didn't have to find any workarounds. But here are some ideas:

  1. You can build the hpi with this PR and install it in your Jenkins
  2. You can tweak your entrypoint to somehow do this time consuming operation in the background rather than waiting for it before running CMD

felipecrs avatar Mar 15 '24 18:03 felipecrs