Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 740697c

Browse files
committed
feat: dockerized image for cs_comments_service
1 parent 5809f37 commit 740697c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

configuration_files/forum.yml

Whitespace-only changes.

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ services:
195195
aliases:
196196
- edx.devstack.mongo
197197
ports:
198-
- "27017:27017"
198+
- "27017:27017"
199199
volumes:
200200
- mongo_data:/data/db
201201
- mongo_config_data:/data/configdb
@@ -419,6 +419,8 @@ services:
419419
- edx.devstack.forum
420420
ports:
421421
- "44567:4567"
422+
volumes:
423+
- ${PWD}/configuration_files/forum.yml:/edx/etc/forum.yml
422424

423425
lms:
424426
command: bash -c 'source /edx/app/edxapp/edxapp_env && while true; do python /edx/app/edxapp/edx-platform/manage.py lms runserver 0.0.0.0:18000 --settings devstack_docker; sleep 2; done'

provision-forum.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
set -eu -o pipefail
33
set -x
44

5-
docker compose up -d forum
6-
docker compose exec -T forum bash -e -c 'source /edx/app/forum/ruby_env && source /edx/app/forum/devstack_forum_env && cd /edx/app/forum/cs_comments_service && bundle install --deployment --path /edx/app/forum/.gem/ && bin/rake search:initialize'
5+
name=forum
6+
7+
docker compose up -d ${name}
8+
docker compose exec -T ${name} bash -e -c 'cd /edx/app/forum/cs_comments_service && make initialize_search' -- "$name"

0 commit comments

Comments
 (0)