November 2018
Intermediate to advanced
556 pages
14h 42m
English
We can now start the microservice and perform an HTTP request. From the command line, start the server as follows:
$ cd container/local_test$ docker run -v $(pwd)/test_dir:/opt/ml -p 8080:8080 --rm rul-estimator serve
Finally, from the command line, run the following command:
$ curl --data-binary @test.csv -H "Content-Type: text/csv" -v http://localhost:8080/invocations
The expected output will look as follows:
$ < HTTP/1.1 100 Continue…$ < Server: nginx/1.10.3 (Ubuntu)…$ < $ 113.80298
The residual ...