Commit 58c43993 by Brian Beggs Committed by Brian Beggs

Add provisioning script for forums

parent fd27f5c1
...@@ -175,7 +175,7 @@ services: ...@@ -175,7 +175,7 @@ services:
- edxapp_studio_assets:/edx/var/edxapp/staticfiles/ - edxapp_studio_assets:/edx/var/edxapp/staticfiles/
forum: forum:
command: bash -c 'source /edx/app/forum/ruby_env source && source /edx/app/forum/devstack_forum_env && cd /edx/app/forum/cs_comments_service && while true; do ruby app.rb -o 0.0.0.0 ; sleep 2; done' command: bash -c 'source /edx/app/forum/ruby_env && source /edx/app/forum/devstack_forum_env && cd /edx/app/forum/cs_comments_service && while true; do ruby app.rb -o 0.0.0.0 ; sleep 2; done'
container_name: edx.devstack.forum container_name: edx.devstack.forum
depends_on: depends_on:
- mongo - mongo
......
...@@ -2,28 +2,35 @@ set -x ...@@ -2,28 +2,35 @@ set -x
echo "Checking LMS heartbeat:" echo "Checking LMS heartbeat:"
curl http://localhost:18000/heartbeat curl http://localhost:18000/heartbeat
if [[ $? -ne 0 ]]; then if [ $? -ne 0 ]; then
docker-compose logs docker-compose logs
exit 2 exit 2
fi fi
echo echo
echo "Checking Studio heartbeat:" echo "Checking Studio heartbeat:"
curl http://localhost:18010/heartbeat # Studio curl http://localhost:18010/heartbeat # Studio
if [[ $? -ne 0 ]]; then if [ $? -ne 0 ]; then
docker-compose logs docker-compose logs
exit 2 exit 2
fi fi
echo echo
echo "Checking ecommerce health:" echo "Checking ecommerce health:"
curl http://localhost:18130/health/ # Ecommerce curl http://localhost:18130/health/ # Ecommerce
if [[ $? -ne 0 ]]; then if [ $? -ne 0 ]; then
docker-compose logs docker-compose logs
exit 2 exit 2
fi fi
echo echo
echo "Checking discovery health:" echo "Checking discovery health:"
curl http://localhost:18381/health/ # Discovery curl http://localhost:18381/health/ # Discovery
if [[ $? -ne 0 ]]; then if [ $? -ne 0 ]; then
docker-compose logs
exit 2
fi
echo
echo "Checking forum health:"
curl http://localhost:44567/heartbeat # Forums
if [ $? -ne 0 ]; then
docker-compose logs docker-compose logs
exit 2 exit 2
fi fi
\ No newline at end of file
set -e
set -o pipefail
set -x
docker-compose $DOCKER_COMPOSE_FILES up -d forum
docker-compose exec forum bash -c 'source /edx/app/forum/ruby_env && cd /edx/app/forum/cs_comments_service && bundle install --deployment --path /edx/app/forum/.gem/'
...@@ -46,6 +46,7 @@ docker-compose $DOCKER_COMPOSE_FILES up -d studio ...@@ -46,6 +46,7 @@ docker-compose $DOCKER_COMPOSE_FILES up -d studio
./provision-discovery.sh ./provision-discovery.sh
./provision-credentials.sh ./provision-credentials.sh
./provision-e2e.sh ./provision-e2e.sh
./provision-forum.sh
docker image prune -f docker image prune -f
......
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