Skip to content

Commit 102d281

Browse files
committed
Add Makefile targets for updating wheels and reqs in ansbile dir
Add Makefile targets to copy the wheels to correct location under ansible directory and for updating the requirements-workflow.txt and requirements-web-ui.txt files used in the Ansible roles.
1 parent 97ede62 commit 102d281

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

Makefile

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
.PHONY: \
22
up down start stop restart logs ps build \
33
clean-wheels wheels \
4-
requirements
4+
ansible-update ansible-wheel-update \
5+
ansible-requirements requirements
6+
7+
ANSIBLE_DESTDIR ?= ansible/roles/passari_packages/files
58

69
up:
710
docker-compose up
@@ -33,6 +36,22 @@ clean-wheels:
3336
wheels:
3437
./build-wheels
3538

39+
ansible-update: clean-wheels wheels ansible-wheel-update ansible-requirements
40+
41+
ansible-wheel-update:
42+
rm -fr $(ANSIBLE_DESTDIR)/wheels
43+
mkdir -p $(ANSIBLE_DESTDIR)/wheels
44+
cp -vf wheels/*.whl $(ANSIBLE_DESTDIR)/wheels/
45+
46+
ansible-requirements: requirements.txt requirements-siptools.txt
47+
rm -f $(ANSIBLE_DESTDIR)/requirements*.txt
48+
cp -vf requirements.txt requirements-siptools.txt \
49+
$(ANSIBLE_DESTDIR)/
50+
./compile-requirements --hashes \
51+
$(ANSIBLE_DESTDIR)/requirements-workflow.in
52+
./compile-requirements --hashes \
53+
$(ANSIBLE_DESTDIR)/requirements-web-ui.in
54+
3655
requirements: requirements.txt requirements-dev.txt
3756

3857
%.txt: %.in

0 commit comments

Comments
 (0)