stefan-hoeck / idris2-pack

BSD 3-Clause "New" or "Revised" License
90 stars 23 forks source link

[ re #276 ] Make docker healthcheck to be not side-effecting #277

Closed buzden closed 5 months ago

buzden commented 5 months ago

I'm sorry, I didn't realise that in #276 I added a side-effecting call to idris2 (which may change the state of $HOME/.pack in some circumstances), which made some operations failing in a flaky way when being run under the pack's docker image, e.g. when either two calls to pack are changing same files in a non-synchronised fashion, or another utilities, like tar are detecting changes in the file system, which are unexpected to them.

So, let's change the healthcheck command to a more appropriate one -- it checks that pack runs, but help command is not side-effecting.