Skip to content

Commit

Permalink
Added provision step to create demo courses and users for edxapp
Browse files Browse the repository at this point in the history
ECOM-6634

Fixes openedx-unsupported#35
  • Loading branch information
clintonb committed Jan 25, 2017
1 parent d50c39b commit a5f249d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ docker exec -t edx.devstack.edxapp bash -c 'source /edx/app/edxapp/edxapp_env &
docker exec -t edx.devstack.edxapp bash -c 'source /edx/app/edxapp/edxapp_env && python /edx/app/edxapp/edx-platform/manage.py lms --settings=devstack_docker manage_user edx [email protected] --superuser --staff'
docker exec -t edx.devstack.edxapp bash -c 'source /edx/app/edxapp/edxapp_env && echo "from django.contrib.auth import get_user_model; User = get_user_model(); user = User.objects.get(username=\"edx\"); user.set_password(\"edx\"); user.save()" | python /edx/app/edxapp/edx-platform/manage.py lms shell --settings=devstack_docker' &

# Create demo course and users
docker exec -t edx.devstack.edxapp bash -c '/edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook /edx/app/edx_ansible/edx_ansible/playbooks/edx-east/demo.yml -v -c local -i "127.0.0.1," --extra-vars="COMMON_EDXAPP_SETTINGS=devstack_docker"' &

# We must fake an associative array for Bash 3 users
services=('credentials:18150' 'discovery:18381' 'ecommerce:18130' 'programs:18140')

Expand Down

0 comments on commit a5f249d

Please sign in to comment.