docker build -t execimage .
docker build -t serverimage -f Dockerfile.server .
docker run --rm -v $PWD:/output execimage 30 40
Runs the processor and the result of it will be written to a file named result.txt in this folder
docker run --rm -it -p 3000:3000 -v $PWD:/output serverimage
Starts listening port 3000
curl -X POST localhost:3000/run -H "Content-Type: application/json" --data '{"param1": "/test", "param2": 10}'
this POST request returns a JSON object with the ID of the execution. The console for the server docker container will have the output of the exection and result will be written to the result.txt file in the same folder.