Sign inSign up

wincus/compute-pi

By wincus

•Updated over 7 years ago

Image
0

477

wincus/compute-pi repository overview

Super simple pi-compute service. Can be handy if you wanna test intense on cpu services

⁠Source Code

TODO

⁠How to use

The number of ( Hex ) digits are taken from the path. For example, to get the 10 first ( hex ) pi digits use:

$  docker run -d -p 8080:80 wincus/compute-pi
$  <container-id-response>
$  curl -i http://127.0.0.1:8080/10
HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 11 Apr 2019 17:03:26 GMT
Content-Length: 29

{"Result":"AgQDDwYKCAgIBQ=="}%

Tag summary

Content type

Image

Digest

Size

6.3 MB

Last updated

over 7 years ago

docker pull wincus/compute-pi