Commit cccd5b19 by John Jarvis

configurable virtualenv for env

parent ae1b6a91
...@@ -45,29 +45,31 @@ ...@@ -45,29 +45,31 @@
# TODO: Check git.py _run_if_changed() to see if the logic there to skip running certain # TODO: Check git.py _run_if_changed() to see if the logic there to skip running certain
# portions of the deploy needs to be incorporated here. # portions of the deploy needs to be incorporated here.
#
- name: install ease apt-packages - name: install ease system packages
command: xargs -a {{ease_code_dir}}/apt-packages.txt apt-get install -y apt: pkg={{item}} state=present
with_items: ease_debian_pkgs
tags: tags:
- ease - ease
- deploy - deploy
# Install the python pre requirements into {{ venv_dir }}
# Install the python pre requirements into {{ ease_venv_dir }}
- name: install ease python pre-requirements - name: install ease python pre-requirements
pip: requirements="{{ease_pre_requirements_file}}" virtualenv="{{venv_dir}}" state=present pip: requirements="{{ease_pre_requirements_file}}" virtualenv="{{ease_venv_dir}}" state=present
tags: tags:
- ease - ease
- deploy - deploy
# Install the python post requirements into {{ venv_dir }} # Install the python post requirements into {{ ease_venv_dir }}
- name: install ease python post-requirements - name: install ease python post-requirements
pip: requirements="{{ease_post_requirements_file}}" virtualenv="{{venv_dir}}" state=present pip: requirements="{{ease_post_requirements_file}}" virtualenv="{{ease_venv_dir}}" state=present
tags: tags:
- ease - ease
- deploy - deploy
- name: install ease python package - name: install ease python package
shell: command="{{venv_dir}}/bin/activate; cd {{ease_code_dir}}; python setup.py install" shell: command="{{ease_venv_dir}}/bin/activate; cd {{ease_code_dir}}; python setup.py install"
tags: tags:
- ease - ease
- deploy - deploy
...@@ -82,7 +84,7 @@ ...@@ -82,7 +84,7 @@
- name: install nltk data using rendered shell script - name: install nltk data using rendered shell script
command: "{{venv_dir}}/bin/python -m nltk.downloader -d {{nltk_data_dir}} all" command: "{{ease_venv_dir}}/bin/python -m nltk.downloader -d {{nltk_data_dir}} all"
when: nltk_data_installed.stdout != "Found" when: nltk_data_installed.stdout != "Found"
tags: tags:
- ease - ease
......
...@@ -5,6 +5,7 @@ ora_code_dir: "{{ app_base_dir }}/edx-ora" ...@@ -5,6 +5,7 @@ ora_code_dir: "{{ app_base_dir }}/edx-ora"
# These should be overrided if you want # These should be overrided if you want
# to serve all content on port 80 # to serve all content on port 80
ora_venv_dir: "/opt/edx" ora_venv_dir: "/opt/edx"
ease_venv_dir: "/opt/edx"
ora_gunicorn_workers: 4 ora_gunicorn_workers: 4
ora_nginx_port: 18091 ora_nginx_port: 18091
ora_gunicorn_port: 8091 ora_gunicorn_port: 8091
...@@ -50,4 +51,17 @@ ora_debian_packages: ...@@ -50,4 +51,17 @@ ora_debian_packages:
- liblapack-dev - liblapack-dev
- libatlas-base-dev - libatlas-base-dev
- redis-server - redis-server
ease_debian_packages:
- python-pip
- gcc
- g++
- gfortran
- libblas3gf
- libblas-dev
- liblapack3gf
- liblapack-dev
- libatlas-base-dev
- libxml2-dev
- libxslt1-dev
- aspell
- python
--- ---
# override the default virtualenv for ora # override the default virtualenv for ora
ora_venv_dir: "/opt/wwc/virtualenvs/ora" ora_venv_dir: "/opt/wwc/virtualenvs/ora"
ease_venv_dir: "/opt/wwc/virtualenvs/ease"
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