Skip to content

Conversation

@sth
Copy link

@sth sth commented Jun 11, 2025

Currently docker build successfully creates a docker image even if make in build.sh fails. The resulting Docker image is not useful, because it doesn't contain the compiled programs, but there is no obvious indication that there were problems. When starting the container it results in errors like this.

It makes more sense to abort the build in such cases. The simplest way is to tell bash to exit the build script on errors with set -e. This way errors on ./configure, make and all other steps are covered.

An exception are the calls to strip. These calls are given shell scripts in their command line arguments, resulting in an error exist status that can be ignored.

sth added 2 commits June 11, 2025 21:54
They are given shell scripts in their parameter lists and therefore
it's expected that they return errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant