#最简易的方式

1
2
export OPENEDX_RELEASE=named-release/cypress
wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/sandbox.sh -O - | bash

#分步安装

  • sudo apt-get update -y
  • sudo apt-get upgrade -y
  • sudo reboot
  • sudo apt-get install -y build-essential software-properties-common python-software-properties curl git-core libxml2-dev libxslt1-dev libfreetype6-dev python-pip python-apt python-dev libxmlsec1-dev swig
  • sudo pip install –upgrade pip
  • sudo pip install –upgrade virtualenv
  • cd /var/tmp
  • git clone https://github.com/edx/configuration
  • cd /var/tmp/configuration
  • git checkout named-release/cypress
  • sed -i “/COMMON_SSH_PASSWORD_AUTH/c COMMON_SSH_PASSWORD_AUTH: "yes"” playbooks/roles/common/defaults/main.yml
  • sudo pip install -r requirements.txt
  • cd /var/tmp/configuration/playbooks
  • sudo ansible-playbook -c local ./edx_sandbox.yml -i "localhost," -e 'edx_platform_version=named-release/cypress certs_version=named-release/cypress forum_version=named-release/cypress xqueue_version=named-release/cypress'

#建议 不要在edx_sandbox.yml添加insights和ecommerce,否则可能出现nodeenv错误。这两项功能目前还没完善