Creates n docker containers with ansible and sends file ball.yaml from one to another.
ansible-playbook run_all.yaml -e "jugglers_number=n" -v
To access exposed APIs of containers:
- Container_1: http://localhost:5001/docs
- Container_2: http://localhost:5002/docs
... - Container_n: http://localhost:5000+n/docs
- In the beginning container_1 has the ball with counter = 0.
- Start process with
start_juggleendpoint. - Stop process with
stop_juggleendpoint. - Use
do_i_have_a_ballendpoint to check count of ball moves from one container to another. - Juggling stops when you run
stop_juggleendpoint and ball arrives to the container from which you ran this endpoint. - While system is juggling you can't get number of ball moves from any containers - you simply won't be able to catch the ball before it's gonna be juggled further.
