ASP.NET Core Web Application deployment on a Docker Container | AZURE VM | Docker File | PART-1

Sdílet
Vložit
  • čas přidán 24. 04. 2021
  • ASP.NET Core web application deployment on a Docker Container
    Steps:-
    - ASP.NET Core web application creation locally
    - Creation of Ubuntu Server on Azure Cloud
    - Docker container set-up on Ubuntu Server
    - Docker File creation and walk-through
    - Docker Image and Container Creation
    - Testing the Running the web application on Docker Container
    DOCKERFILE:-
    FROM mcr.microsoft.com/dotnet/core/sdk:3.1
    WORKDIR /app
    COPY . .
    ENV ASPNETCORE_URLS *:5000
    EXPOSE 5000
    ENTRYPOINT ["dotnet", "demoproj.dll"]
    DOCKER SET-UP Commands:-
    sudo apt update
    sudo apt install apt-transport-https ca-certificates curl software-properties-common
    curl -fsSL download.docker.com/linux/ubu... | sudo apt-key add -
    sudo add-apt-repository "deb [arch=amd64] download.docker.com/linux/ubuntu bionic stable"
    sudo apt update
    sudo apt install docker-ce
    DOCKER COMMANDS:-
    sudo docker build -t dotnetapp .
    sudo docker run -d -p 5000:5000 dotnetapp
    Follow us @devopsmela on Instagram
    Write us devopsmela@gmail.com
  • Věda a technologie

Komentáře • 27

  • @venkatasumanbhavanasi6939
    @venkatasumanbhavanasi6939 Před 6 měsíci +1

    Good Explanation...Thanks for showing examples on dotnet application as I am dotnet developer.

    • @DevOpsMela
      @DevOpsMela  Před 6 měsíci

      Thanks! For the valuable feedback…

  • @UmerSyed707
    @UmerSyed707 Před 3 lety +1

    Thanks for uploading this, nicely explained

  • @UmerSyed707
    @UmerSyed707 Před 3 lety +1

    Thanks for uploading this, nicely done

  • @shubhamsarnaik-md6gm
    @shubhamsarnaik-md6gm Před 3 měsíci +1

    Thanks for detailed steps to deploy application on docker container. Is it possible to deploy application in docker container of azure VM using Azure CICD ?

    • @DevOpsMela
      @DevOpsMela  Před 3 měsíci +1

      Yes! It is possible to deploy on Azure VM too

  • @preetymishra5918
    @preetymishra5918 Před 8 měsíci +1

    If we do not want to have public ip on the VM. And access the application through private ip, is it possible?@DevOpsMela

    • @DevOpsMela
      @DevOpsMela  Před 8 měsíci

      Hi Preety, there are various ways to achieve the above scenario like you keep your application behind load balancer or application gateway etcetc…

  • @samueldsouza3307
    @samueldsouza3307 Před rokem +1

    please make a video on .net 6.0 using

  • @user-rr5pl7jt2z
    @user-rr5pl7jt2z Před 4 měsíci +1

    After running sudo docker run -d -p 5000:5000 dotnetapp
    Container status showing exited [1]
    how to resolve

    • @DevOpsMela
      @DevOpsMela  Před 4 měsíci

      Hi Rohit, mostly the image which you have created has some issue, re-check your dockerfile and re-build the image once.

  • @dharshankanna8386
    @dharshankanna8386 Před rokem +1

    High quality content !! jus one doubt Why ubuntu is preferred for docker container ?

    • @DevOpsMela
      @DevOpsMela  Před rokem

      Thanks! And docker can we setup on other Linux flavours too like Centos, RHEL etc. so there is no such preference its upto the application your running and the underlying libraries it requires…

    • @dharshankanna8386
      @dharshankanna8386 Před rokem

      @@DevOpsMela ok great ! I am very Much new to this . I have another doubt So, after web api deployment can i deploy my angular as a another service in this same node or different node

  • @shashankshukla1148
    @shashankshukla1148 Před rokem +1

    Hello dear. Thanks for the video. In the last step even after adding 5000 port inbound rule in Azure portal i am still getting connection refused. Is there anything i am missing please guide ?

    • @DevOpsMela
      @DevOpsMela  Před rokem

      Hey Shashank,
      Kindly share more details what all steps you have performed, bcoz just by connection refused its very difficult to decode..
      Share details on devopsmela@gmail.com
      Thanks..

    • @shashankshukla1148
      @shashankshukla1148 Před rokem

      @@DevOpsMela Thanks Rohit for your response. I will send you an email shortly

    • @shashankshukla1148
      @shashankshukla1148 Před rokem

      I have sent you an email Rohit. Thanks

  • @priyamathew4123
    @priyamathew4123 Před rokem +1

    Hi , I have created the ubentu server in Azure.But I am not able to access the machine. I am getting the error Access Denied. Do you have any solution for this issue.

    • @DevOpsMela
      @DevOpsMela  Před rokem

      Try resetting the password from the portal vm->help->reset password

  • @hasanmahmud4688
    @hasanmahmud4688 Před rokem

    can you please add SQL server on the docker container in production?

    • @DevOpsMela
      @DevOpsMela  Před rokem

      Yes, you can setup sql servers in containers too and for using the same in production you need to consider multiple factors…like SLA, Availability etc…

    • @hasanmahmud4688
      @hasanmahmud4688 Před rokem

      @@DevOpsMela thanks for your response, if possible can you please add a video on this topic ?

  • @rajkumarreddy8795
    @rajkumarreddy8795 Před 2 lety

    I am getting error in the end, while browsing VM ip

    • @DevOpsMela
      @DevOpsMela  Před 2 lety +1

      Share the error screenshot at devopsmela@gmail.com to debug the same

    • @rajkumarreddy8795
      @rajkumarreddy8795 Před 2 lety

      @@DevOpsMela Thanks, for support