forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print logs from container after failed healthcheck and only shallow
clone to save space
- Loading branch information
1 parent
bddea86
commit f3825bc
Showing
4 changed files
with
23 additions
and
5 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,14 +1,29 @@ | ||
set -e | ||
set -x | ||
|
||
echo "Checking LMS heartbeat:" | ||
curl http://localhost:18000/heartbeat # LMS | ||
curl http://localhost:18000/heartbeat | ||
if [[ $? -ne 0 ]]; then | ||
docker-compose logs | ||
exit 2 | ||
fi | ||
echo | ||
echo "Checking Studio heartbeat:" | ||
curl http://localhost:18010/heartbeat # Studio | ||
if [[ $? -ne 0 ]]; then | ||
docker-compose logs | ||
exit 2 | ||
fi | ||
echo | ||
echo "Checking ecommerce health:" | ||
curl http://localhost:18130/health/ # Ecommerce | ||
if [[ $? -ne 0 ]]; then | ||
docker-compose logs | ||
exit 2 | ||
fi | ||
echo | ||
echo "Checking discovery health:" | ||
curl http://localhost:18381/health/ # Discovery | ||
if [[ $? -ne 0 ]]; then | ||
docker-compose logs | ||
exit 2 | ||
fi |
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