Giter Club home page Giter Club logo

docker-grpc-netcore's Introduction

Build App

dotnet publish .\src\MyCompany.MyStack.sln --configuration Release

Run locally

dotnet .\src\MyCompany.MyStack.ServerApp\bin\Release\netcoreapp2.1\publish\MyCompany.MyStack.ServerApp.dll p1 p2 p3
dotnet .\src\MyCompany.MyStack.ClientApp\bin\Release\netcoreapp2.1\publish\MyCompany.MyStack.ClientApp.dll p1 p2 p3
dotnet .\src\MyCompany.MyStack.MyRestApp\bin\Release\netcoreapp2.1\publish\MyCompany.MyStack.MyRestApp.dll

Build Docker Image

docker build --tag serverapp.mystack.mycompany --pull --file .\src\MyCompany.MyStack.ServerApp\Dockerfile .
docker build --tag clientapp.mystack.mycompany --pull --file .\src\MyCompany.MyStack.ClientApp\Dockerfile .
docker build --tag myrestapp.mystack.mycompany --pull --file .\src\MyCompany.MyStack.MyRestApp\Dockerfile .

Run Container in background

docker network create mystack.mycompany

docker run -d --name serverapp --publish 50052:50052 --network=mystack.mycompany --detach serverapp.mystack.mycompany par1 par2 "par 3"
docker logs --follow serverapp
docker stop serverapp
docker logs --tail 20 serverapp
docker container rm serverapp

docker run -d --name clientapp --network=mystack.mycompany --detach clientapp.mystack.mycompany par1 par2 "par 3"
docker logs --follow clientapp
docker stop clientapp
docker logs --tail 20 clientapp
docker container rm clientapp

docker network rm mystack.mycompany

docker run -d --name myrestapp --publish 5000:5000 myrestapp.mystack.mycompany
docker stop myrestapp
docker container rm myrestapp

Remove image

docker image rm serverapp
docker image rm clientapp
docker image rm myrestapp

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.