Commit 0fca2088 by Eric Fischer Committed by Brian Beggs

Mount src directory for local pip installs

parent e65c5244
...@@ -341,6 +341,11 @@ starts, you have a few options: ...@@ -341,6 +341,11 @@ starts, you have a few options:
container is started. For example, the part of the studio command which container is started. For example, the part of the studio command which
reads ``...&& while true; do...`` could be changed to reads ``...&& while true; do...`` could be changed to
``...&& pip install my-new-package && while true; do...``. ``...&& pip install my-new-package && while true; do...``.
* In order to work on locally pip-installed repos like edx-ora2, first clone
them into ../src (relative to this directory). Then, inside your lms shell,
you can ``pip install -e /edx/src/edx-ora2``. If you want to keep this code
installed across stop/starts, modify ``docker-compose.yml`` as mentioned
above.
Switching branches Switching branches
------------------ ------------------
......
...@@ -13,10 +13,12 @@ services: ...@@ -13,10 +13,12 @@ services:
lms: lms:
volumes: volumes:
- ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform:cached - ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform:cached
- ${DEVSTACK_WORKSPACE}/src:/edx/src:cached
studio: studio:
volumes: volumes:
- ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform:cached - ${DEVSTACK_WORKSPACE}/edx-platform:/edx/app/edxapp/edx-platform:cached
- ${DEVSTACK_WORKSPACE}/src:/edx/src:cached
forum: forum:
volumes: volumes:
- ${DEVSTACK_WORKSPACE}/cs_comments_service:/edx/app/forum/cs_comments_service:cached - ${DEVSTACK_WORKSPACE}/cs_comments_service:/edx/app/forum/cs_comments_service:cached
\ No newline at end of file
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