GithubHelp home page GithubHelp logo

pi's Introduction

Pi

Various Dockerized .NET implementations of a Pi calculator.

Pi.Web

Pi as a .NET Core (3.1) web app.

docker run -d -p 8081:80 sixeyed/pi:2002 -m web

Browse to http://localhost:8081?dp=500 and http://localhost:8081/metrics

Or to print out to console:

docker run sixeyed/pi:2002

docker run sixeyed/pi:2002 -dp 500

Or to write to a file:

mkdir pi-core

# linux:
docker run -v "$(pwd)/pi-core:/out" sixeyed/pi:2002 -m file -dp 1000 -o /out/pi.txt

# windows:
docker run -v "$(pwd)/pi-core:C:\out" sixeyed/pi:2002 -m file -dp 1000 -o /out/pi.txt

cat ./pi-core/pi.txt

Pi.NetFx

Pi as a .NET Framework (4.8) console app.

This only runs as a Windows container, on Windows 10 or Server 2019

docker run sixeyed/pi:netfx-2002

docker run sixeyed/pi:netfx-2002 -dp 500

Or to write to a file:

mkdir pi-netfx

docker run -v "$(pwd)\pi-netfx:C:\out" sixeyed/pi:netfx-2002 -m file -dp 1000 -o C:\out\pi.txt

cat .\pi-netfx\pi.txt

Pi.Wcf

Pi as a REST service, using WCF (.NET Framework 4.8).

This only runs as a Windows container, on Windows 10 or Server 2019

docker run -d -p 8080:80 -p 8088:50505 sixeyed/pi:wcf-2002

Check the output and metrics:

curl http://localhost:8080/PiService.svc/Pi?dp=800

curl http://localhost:8088/metrics

pi's People

Contributors

sixeyed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.