Skip to content

wrijugh/bdotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build 2022 Recap

[BDotNet Bangalore on on 9 July 2022] Samples, scripts

Architecture

Commands

Build Dotnet Core Web App

# Create a new asp.net core application
$ dotnet new --name sampleweb --no-https

# change the directory
$ cd sampleweb

# build that application
$ dotnet build 

# run the application
$ dotnet run

Build and Push Docker Image

# add a Dockerfile either manually or by draft or by vscode 

# check if the docker is running 
$ docker ps 

# if docker is not running then start the docker 
$ sudo service docker start

# when docker is running, stay in the folder where Dockerfile is there 

AKS

Draft

Documentation https://docs.microsoft.com/en-us/azure/aks/draft

Install draft (preview)

az extension add --name aks-preview

Create the Dockerfile, helm etc.

az aks draft create

Create Github workflow

az aks draft generate-workflow 

Grafana

az grafana create --name sampleweb -g rg-demo-bdotnet -l eastus

Scripts

  • Resource Group
  • Azure Container Registry (ACR)
  • Azure Container Instance (ACI)
  • Azure App Service
  • Azure Kubernetes Service (AKS)