Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
devstack
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
devstack
Commits
58c43993
Commit
58c43993
authored
Sep 05, 2017
by
Brian Beggs
Committed by
Brian Beggs
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add provisioning script for forums
parent
fd27f5c1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
+20
-5
docker-compose.yml
+1
-1
healthchecks.sh
+12
-4
provision-forum.sh
+6
-0
provision.sh
+1
-0
No files found.
docker-compose.yml
View file @
58c43993
...
@@ -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
...
...
healthchecks.sh
View file @
58c43993
...
@@ -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
docker-compose logs
exit
2
exit
2
fi
fi
echo
echo
"Checking forum health:"
curl http://localhost:44567/heartbeat
# Forums
if
[
$?
-ne
0
]
;
then
docker-compose logs
exit
2
fi
\ No newline at end of file
provision-forum.sh
0 → 100755
View file @
58c43993
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/'
provision.sh
View file @
58c43993
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment