Exec/debug - Is it possible to use a shell other than bash?
-
Hi,
I've packaged an minimalistic app based on Alpine, and I'm able to package it and make it run on my Cloudron but it seems impossible to debug it unless I install bash addition to the base alpine image.My attempts to use cloudron exec or cloudron debug have both failed unless bash is present in the image.
Is there a way to run a different shell and then what might I be missing? The source code for box mostly reference bash as a default choice which is totally valid but I just want to know if it's obligatory or not, I couldn't find a clear answer in the source code nor in docs about the packaging requirements.
Thanks!
-
For exec, you can do
cloudron exec --tty sh
.cloudron debug <cmd>
. cmd needs to somehow "hang". If you havesleep
in your Docker image, you can docloudron debug sleep infinity
.There was some legacy commander parsing code in our CLI. Luckily, commander now supports variadic args and I have fixed our CLI and published a new version 5.12.0 . Can you check with that?
-
-
Nice, the syntax
cloudron exec --app <app> --tty sh
works perfectly