Distribute dependencies 39/6239/1
authorFatih Degirmenci <fatih.degirmenci@est.tech>
Mon, 5 Oct 2020 09:36:12 +0000 (09:36 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Sun, 11 Oct 2020 14:40:18 +0000 (14:40 +0000)
commit623d707e6cd3a57564fa783a8fc5c8b5ddc5cbdc
treef2c395c4021c2fc3cb18ca7cd879ba9325cd0cdf
parent3c5d6609d0ec0d4b16dc67ff8abf7a09d4f26d7e
Distribute dependencies

This change moves the dependencies required for Kubernetes stack to
stack itself, making sure we deal with the dependencies required for
it and no other stack.

This is achieved by
- moving operating system dependencies from engine core bindep.txt into
stack bindep.txt
- moving python dependencies from engine core requirements.txt into
stack requirements.txt
- taking setup-stack.sh script in use so engine core executes this script
from the stack

The benefits of this approach
- ability to control dependencies directly within the stack without
impacting other stacks and engine core
- package dependencies required for the stack itself and not everything
- allow identifying engine core dependencies so they can be made part of
stack packaging, enabling stacks to stop using leftovers of an earlier
deployment done for a different stack
- pave the way for multi distro support since some stacks may support
more than one distro and that support can be introduced and maintained
within corresponding stack
- deferred processing of dependencies allow to engine become functioning
faster than how it is know. also, the overall deployment time will be
shortened a bit with the help of this due to dealing with dependencies
based on stack

Depends-On: I713d0e333bc4a01c92e6aa6ae1a4e6f3d9efe2ad
Change-Id: I9508275fe581cea15af3c9e7dfa0b3342370460b
bindep.txt [new file with mode: 0644]
playbooks/roles/package/tasks/pip.yaml
requirements.txt [new file with mode: 0644]
setup-stack.sh
test-requirements.txt