Microservice to collect a user's task
This microservice listens for the following messages
{role: 'tasks', type: 'user'}{info: 'tasks', type: 'user'}This microservice emits the following messages
{cmd: 'collect-tasks', type:'user'}Build the image
$ docker build -t tasks-user .
Start
$ docker run -d --net host --name tasks-user tasks-user
From hub.docker.com
$ docker run -d --net host --name tasks-user telemark/tasks-user
Call the service
$ curl -d '{"role":"tasks", "type": "user", "user":"gasg"}' -v http://localhost:8000/act
$ curl -d '{"info":"tasks", "type": "user", "data":{"user": "gasg", "system": "npm", "data": ["awsm"]}}' -v http://localhost:8000/act
Content type
Image
Digest
Size
97.3 MB
Last updated
over 9 years ago
docker pull telemark/tasks-user