forked from openedx-unsupported/edx-analytics-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.PHONY: requirements upgrade pin-pip
upgrade: ## update the pip requirements files to use the latest releases satisfying our constraints
pip install -qr requirements/pip-tools.txt
pip-compile --upgrade -o requirements/pip-tools.txt requirements/pip-tools.in
pip-compile --upgrade -o requirements/base.txt requirements/base.in
# Post process all of the files generated above to replace the instructions for recreating them
script/post-pip-compile.sh \
requirements/pip-tools.txt \
requirements/base.txt
pin-pip:
pip install -qr requirements/pip.txt
requirements: pin-pip
pip install --no-cache-dir -q -r requirements/base.txt
# Run ansible in local mode so that it runs the emr module in the
# local python which is likely necessary since that is where the
# proper version of boto is installed.
provision.emr: requirements
ansible-playbook --connection local -i 'localhost,' batch/provision.yml -e "$$EXTRA_VARS"
terminate.emr: requirements
ansible-playbook --connection local -i 'localhost,' batch/terminate.yml -e "$$EXTRA_VARS"
# We actually connect to the master node, hence the lack of a local connection.
collect.metrics: requirements inventory.refresh
ansible-playbook -u "$$TASK_USER" batch/collect.yml -e "$$EXTRA_VARS" || true
inventory.refresh:
./plugins/ec2.py --refresh-cache >/dev/null
users.update: requirements inventory.refresh
ansible-playbook -u "$$REMOTE_USER" infrastructure/users.yml -e "$$EXTRA_VARS"