Better handle situation where restful image cannot create user
Currently the restful image can be built even if for whatever reason the useradd
or groupadd
commands failed.
This is, IMO, good.
However, there are a couple of shortcomings to the current way we handle things:
- those commands fail silently
- in fact, it is almost useless to be able to build the image, because the containers cannot be run with the
fedbiomed_run
script since they fail with aunknown user
error.
This has already happened in two situations. One was documented in #501 (closed) and fixed in !200 (merged). The other one has happened to @ibalelli, caused by the fact that her gid is now purely numeric (for reasons unknown), which it seems that alpine does not support.