Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.17 KB

getting_started.rst

File metadata and controls

34 lines (24 loc) · 1.17 KB

Getting Started

If you have not already done so, create or activate a virtualenv. Unless otherwise stated, assume all terminal code below is executed within the virtualenv.

Using Inside a Devstack Container

You can develop and test edx-rbac inside a devstack docker container, as long as the repo lives in your $DEVSTACK_WORKSPACE/src directory (which means it will be mounted into any container running from devstack). In the code snippet below, a python virtualenv for edx-rbac is created inside a subdirectory called venvs/ - this subdirectory is git-ignored, but still "persists" between your host and any running devstack container.

$ make app-shell # or however you get into your container's shell
$ cd /edx/src/edx-rbac
$ virtualenv venvs/edx-rbac # make a separate venv just for this library
$ source venvs/edx-rbac/bin/activate
$ make requirements
$ make test

Install dependencies

Dependencies can be installed via the command below.

$ make requirements