मैं OpenEdx
के साथ काम के लिए अपना खुद का विनाश बना रहा हूं।सही खींचने वाले edxops/मंचों के रास्ते
मैंने एडीएक्स से आधिकारिक devstack
भंडार खींच लिया और मैं इसे संशोधित कर रहा हूं।
मैं अपने स्टैक पर forums
जोड़ने की कोशिश कर रहा हूं लेकिन मैं डॉकर रचना के बाद से नहीं चल सकता।
forums:
command: bash -c 'source /edx/app/forum/cs_comments_service_env && ruby app.rb -p 18080'
container_name: edx.devstack.forums
depends_on:
# - xqueue:xqueue
- mongo
- elasticsearch
# - rabbitmq:rabbitmq
- mysql
- memcached
environment:
CACHE_LOCATION: edx.devstack.memcached:12211
DB_HOST: edx.devstack.mysql
TEST_ELASTICSEARCH_URL: "http://edx.devstack.elasticsearch:9200"
image: edxops/forums:latest
ports:
- 4567:4567
के बारे में मैं समय में सही कमांड जो भ्रमित कर रहा हूँ:
studio:
command: bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py cms runserver 0.0.0.0:18010 --settings devstack_docker'
इस स्टूडियो के लिए आदेश है
मैं composer
फ़ाइल में जोड़ा है।
forums:
command: bash -c 'source /edx/app/forum/cs_comments_service_env && ruby app.rb -p 18080'
मैंने इसके साथ प्रयास किया लेकिन फ़ोल्डर मौजूद नहीं है।
तो मैं के साथ की कोशिश की: command: bash -c 'ruby app.rb -p 18080'
लेकिन मैं इस त्रुटि मिलती है:
edx.devstack.forums | bash: ruby: command not found
edx.devstack.forums exited with code 127
तो, मैं forums
छवि के बारे में और के बारे में मैं कैसे सही ढंग से काम करता है के लिए यह प्रदान कर सकते हैं संदेह में हूँ।
क्या कोई मेरी मदद कर सकता है? - यह कैसे प्रदान करता है? - इसे कैसे चलाएं (कमांड)?
अद्यतन:
मैं एक नया विन्यास है:
docker-compose logs -f --tail=500 | grep edx.devstack.forums
Attaching to edx.devstack.forums, edx.devstack.chrome, edx.devstack.firefox, edx.devstack.credentials, edx.devstack.discovery, edx.devstack.elasticsearch, edx.devstack.ecommerce, edx.devstack.studio, edx.devstack.lms, edx.devstack.memcached, edx.devstack.mysql, edx.devstack.mongo
edx.devstack.forums | /usr/bin/env: ‘ruby’: No such file or directory
लेकिन, क्यों:
forums:
command: bash -c 'cd /edx/app/forum/cs_comments_service && exec /edx/app/forum/cs_comments_service/bin/unicorn -c config/unicorn_tcp.rb'
container_name: edx.devstack.forums
depends_on:
# - xqueue:xqueue
- mongo
- elasticsearch
# - rabbitmq:rabbitmq
- mysql
- memcached
environment:
CACHE_LOCATION: edx.devstack.memcached:12211
DB_HOST: edx.devstack.mysql
SEARCH_SERVER: "http://edx.devstack.elasticsearch:9200"
TEST_ELASTICSEARCH_URL: "http://edx.devstack.elasticsearch:9200"
MONGOHQ_URL: "mongodb://cs_comments_service:[email protected]:27017/cs_comments_service"
GEM_PATH: "/edx/app/forum/.gem"
GEM_HOME: "/edx/app/forum/.gem"
RBENV_ROOT: "/edx/app/forum/.rbenv"
image: edxops/forum:latest
ports:
- 4567:4567
लेकिन मैं अभी भी इस समस्या है?