This is description for the practical part of the workshop
- Do docker-compose up
- Access the terminal of the following containers:
- worker_two_container
- worker_one_container
- one_service_container
- Paste this command into it and execute it:
- sh script.sh
- You are finished with the setup
- Initialize a docker swarm inside the one_service_container and copy the command to join a node
- Add the worker_one_container and worker_two_container as workers to the swarm
- Add the multiple_service_container as manager to the swarm (Tipp: Use docker swarm join-token manager inside the already existing manager container)
- Execute "docker node ls" and copy on off the names
- Paste the copied node name at the end of this command "docker node inspect"
- You are finished with the first exercises
- Start the multipleservice.py class inside the multiple_service_container and open 127.0.0.1:5000
- Create a service inside the one_service_container using the dockerfile image
- Reload the 127.0.0.1:5000 website as soon the service is converged
- Execute "docker node ls" command inside the one_service_container and compare the ids
- Open the 127.0.0.1:4000 website and reload it multiple times.
- Scale the service, you just created, to 2 nodes
- Reload the 127.0.0.1:5000 website as soon the service is converged
- Execute "docker node ls" command inside the one_service_container and compare the ids
- Open the 127.0.0.1:4000 website and reload it multiple times
- Execute "docker service ps" command inside the one_service_container