Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
ded7090d
Commit
ded7090d
authored
May 06, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add github to known hosts, install machine learning package
parent
ba2cb2d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
playbooks/roles/mlapi/tasks/main.yml
+8
-2
No files found.
playbooks/roles/mlapi/tasks/main.yml
View file @
ded7090d
...
...
@@ -17,6 +17,9 @@
command
:
sysctl vm.overcommit_memory=1
sudo
:
yes
-
name
:
add github to the known hosts file
shell
:
ssh-keyscan -H github.com > ~/.ssh/known_hosts
-
name
:
set permissions on $app_base_dir sgid for edx
file
:
path=$app_base_dir owner={{remote_user}} group=edx mode=2775 state=directory
file
:
path={{venv_dir}} owner={{remote_user}} group=edx mode=2775 state=directory
...
...
@@ -34,10 +37,10 @@
file
:
path={{ml_dir}} owner={{remote_user}} group=edx mode=2775 state=directory
sudo
:
True
-
name
:
git checkout ml-service-api repo into
$app_base
_dir
-
name
:
git checkout ml-service-api repo into
ml_api
_dir
git
:
dest={{ml_api_dir}} repo={{mlapi_source_repo}} version={{ml_api_branch}}
-
name
:
git checkout machine-learning repo into
$app_base
_dir
-
name
:
git checkout machine-learning repo into
ml
_dir
git
:
dest={{ml_dir}} repo={{ml_source_repo}} version={{ml_branch}}
-
name
:
install ml-service-api apt packages
...
...
@@ -60,6 +63,9 @@
-
name
:
install python requirements for machine-learning
pip
:
requirements="{{ml_dir}}/requirements.txt" virtualenv="{{venv_dir}}" state=present
-
name
:
install machine-learning python package
shell
:
command="{{venv_dir}}/bin/activate; cd {{ml_dir}}; python setup.py install"
-
name
:
install nltk data using rendered shell script
shell
:
command="{{venv_dir}}/bin/python -m nltk.downloader -d {{nltk_data_dir}} all"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment