saleyn / erlexec

Execute and control OS processes from Erlang/OTP
https://hexdocs.pm/erlexec/readme.html
Other
527 stars 139 forks source link

Warn about missing SHELL environment variable #88

Closed teamon closed 7 years ago

teamon commented 7 years ago

When running inside docker container using e.g. alpine-erlang base image one may encounter {:error, [exit_status: 256, stderr: ["Pid 65: cannot execute '(null)': Bad address\n"]]} error. This is caused by missing SHELL ENV variable - setting it to e.g. SHELL=/bin/sh solves this issue.

I wonder if it could be possible to add some kind of check/warning or is it out of scope of erlexec?

saleyn commented 7 years ago

Implemented this check in master.