Slide 49
Slide 49 text
Brief introduction
●
This simple use case demonstrates how to employ Docker to support a distributed application
in a virtualized environment
●
More precisely, the software architecture is composed of:
– SumService, a text/plain REST service that sums the 2 integer values passed in the query
string of its /sum action
– SumClient, which is SumService's client, employing PortAgent to retrieve SumService's
port on SumService's host (that is different from SumService's port within SumService's
container!)
– PortAgent, another text/plain REST service whose /getPort action queries Docker's APIs
on SumService's host to ascertain the host port on which SumService is listening
●
Each program is written in Go and resides in a dedicated container, as we are going to see
●
Different layouts would have been equally possible, but we have chosen this strategy in order
to show a few interesting techniques - in particular, container linking and use of Docker with a
traditional, VM-based virtualization solution creating a virtual network node
●
All the source code, for both the programs and the Docker images, is published on Github at:
https://github.com/giancosta86/MiniSum
●
The Docker images are published on Docker Hub, under the related giancosta86/* repositories