task-processing-service 🔄
~
Overview
This is an HTTP job processing service.
A job is a collection of tasks, where each task has a name and a shell command. Tasks may
depend on other tasks and require that those are executed beforehand. The service takes care
of sorting the tasks to create a proper execution order.
Call the service
curl 52.188.177.204
curl -X POST -d @samples/mytasks.json http://52.188.177.204/script
curl -X POST -d @samples/mytasks.json http://52.188.177.204/script | bash
curl -X POST -d @samples/mytasks.json http://52.188.177.204/sort
Setup and run locally
go mod vendor
go run main.go
Run tests
Prerequisites
go generate ./...
ginkgo -v
Sample calls locally
curl -X POST -d @samples/mytasks.json http://localhost:8080/script | bash
curl -X POST -d @samples/mytasks.json http://localhost:8080/sort
Build docker image locally
docker build -t <name>/task_processing_service:<tag> .
docker run -it -p 8080:8080 <name>/task_processing_service:<tag>