Micro Sock is a small application that simulates a microservice. It listens for connections and initiates connection to other services specified as a parameter on the command line, and exchanges messages with those services. It is ideal for building a quick topology of services that talk to each other.
The instructions on this page will allow you to get started with a Docker Compose setup that uses multiple micro-sock containers to build a topology that resembles the other Sock Shop deployments. The advantage is that that the required download is only 5 MB and the whole setup starts very fast.
git clone https://github.com/microservices-demo/microservices-demo cd microservices-demo
Get a token by registering on Weave Cloud. Once you have the token you can download and start the Scope instance.
sudo curl -L git.io/scope -o /usr/local/bin/scope sudo chmod a+x /usr/local/bin/scope scope launch --service-token=<token>
docker-compose -f deploy/micro-sock/docker-compose.yaml up -d
Once you started the application using Docker Compose, you can visit Weave Cloud to see how the containers are connected to each other. You should be seeing something like this:
docker-compose -f deploy/micro-sock/docker-compose.yaml down