Last active
March 23, 2017 10:35
-
-
Save ngi644/8d52ff740f4921104282bc2e0f4855b6 to your computer and use it in GitHub Desktop.
ficus.1 をインストール
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo rm -r /var/lib/apt/lists | |
| sudo mkdir /var/lib/apt/lists | |
| sudo mkdir /var/lib/apt/lists/patial | |
| sudo apt-get autoclean | |
| sudo apt-get clean | |
| sudo apt-get update -y | |
| sudo apt-get upgrade -y | |
| sudo apt-get install -y git 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 libmysqlclient-dev | |
| sudo apt-get install -y python-dev --upgrade | |
| sudo pip install --upgrade pip | |
| sudo pip install setuptools --upgrade | |
| sudo -H pip install --upgrade virtualenv | |
| cd /var/tmp | |
| git clone https://github.com/ngi644/configuration | |
| cd configuration/ | |
| git checkout ngi644/custom_ficus_1 | |
| sudo pip install -r requirements.txt | |
| sudo git config --global url."https://".insteadOf git:// | |
| export OPENEDX_RELEASE=open-release/ficus.1 | |
| VERSION_VARS=( | |
| edx_platform_version | |
| certs_version | |
| forum_version | |
| xqueue_version | |
| configuration_version | |
| demo_version | |
| NOTIFIER_VERSION | |
| INSIGHTS_VERSION | |
| ANALYTICS_API_VERSION | |
| PROGRAMS_VERSION | |
| ) | |
| EXTRA_VARS="-e SANDBOX_ENABLE_ECOMMERCE=False" | |
| for var in ${VERSION_VARS[@]}; do | |
| # Each variable can be overridden by a similarly-named environment variable, | |
| # or OPENEDX_RELEASE, if provided. | |
| ENV_VAR=$(echo $var | tr '[:lower:]' '[:upper:]') | |
| eval override=\${$ENV_VAR-\$OPENEDX_RELEASE} | |
| if [ -n "$override" ]; then | |
| EXTRA_VARS="-e $var=$override $EXTRA_VARS" | |
| fi | |
| done | |
| cd /var/tmp/configuration/playbooks && sudo ansible-playbook -c local ./edx_sandbox_simple.yml -i "localhost," $EXTRA_VARS -e@~/server-vars.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment