forked from openshift/ironic-image
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add set -e to all the entrypoint scripts
I noticed that it's possible for the dbsync in the conductor script to fail (if mariadb is not yet up), which is silently ignored and results in a broken Ironic. It's probably one of many possible failures, so lets set -e so containers exit when an error happens, which allows for automated restart e.g via k8s or systemd.
- Loading branch information
Steven Hardy
committed
Jul 25, 2019
1 parent
85abc5a
commit 7e7eb9a
Showing
5 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/usr/bin/bash | ||
|
||
set -e | ||
|
||
. /bin/configure-ironic.sh | ||
|
||
# Allow access to Ironic | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/usr/bin/bash | ||
|
||
set -e | ||
|
||
. /bin/configure-ironic.sh | ||
|
||
# Allow access to mDNS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters