Commit ba93cfd2 by Joel Barciauskas Committed by Joel Barciauskas

Add curl health checks for ecomm, studio and LMS to Travis

parent 3f5a9c9b
......@@ -13,3 +13,4 @@ before_install:
script:
- make provision
- make healthchecks
......@@ -55,3 +55,6 @@ lms-shell: ## Run a shell on the LMS container
studio-shell: ## Run a shell on the Studio container
docker exec -it edx.devstack.studio env TERM=$(TERM) /edx/app/edxapp/devstack.sh open
healthchecks: ## Run a curl against all services' healthcheck endpoints to make sure they are up. This will eventually be parameterized
./healthchecks.sh
set -e
set -x
echo "Checking LMS heartbeat:"
curl http://localhost:18000/heartbeat # LMS
echo
echo "Checking Studio heartbeat:"
curl http://localhost:18010/heartbeat # Studio
echo
echo "Checking ecommerce health:"
curl http://localhost:18130/health/ # Ecommerce
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment