Posts

Dockerize an ASP.NET Core Application

Image
Dockerize ASP.NET Core Application Overview In this article we are trying to run an Asp.Net Core Web application on containers using docker. We have an example to demonstrate how to dockerize an ASP.NET Core application in this post. What is ASP.NET Core? ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-based, Internet-connected applications. With ASP.NET Core, you can: Build web apps and services, IoT apps, and mobile backends. Use your favorite development tools on Windows, macOS, and Linux. Deploy to the cloud or on-premises. Run on .NET Core or .NET Framework . What is docker? Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and ship it all out as one package. Prerequisites We need an ASP.NET Core and Docker a...

Create new custom project on specified template using .NET Core

Description: We will try to create new project template like “console”, “web” using .Net Core. Use case: You have to write same code in multiple solution files then create project template of that code and reuse everywhere. Prerequisite: Install dotnet core 2.0.0+ SDK from https://www.microsoft.com/net/download/core Nuget exe Steps to create project template Create class library project and add your custom logic in it. Need to add template.json file with template confiurationThe template.json file is placed in a .template.config folder in the root directory of the class library. The file provides configuration information to the template engine. The minimum configuration requires the members shown in the following table, which is sufficient to create a functional template. { "$schema": "http://json.schemastore.org/template", "author": "Rahul Jadhav", "classifications": [ "Cusotm", ...

How To Install Docker on Ubuntu 16.04

What is Docker? Docker is an application that makes it simple and easy to run application processes in a container, which are like virtual machines. What is a Container? Containers are a way to package software in a format that can run isolated on a shared operating system. Unlike VMs, containers do not bundle a full operating system - only libraries and settings required to make the software work are needed. This makes for efficient, lightweight, self-contained systems and guarantees that software will always run the same, regardless of where it’s deployed. Prerequisites To follow this tutorial, you will need the following: 64-bit Ubuntu 16.04 server Installing Docker To install docker from official docker repository, add the GPG key for the official Docker repository to the system: $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - Add the Docker repository to APT sources: $ sudo add-apt-repository “deb [arch=amd64] https://download.d...

Install Kibana as Windows Service Using Powershell

This guide installs Kibana as Windows service using Powershell. Kibana: Kibana is an open source data visualization plugin for Elasticsearch . It provides visualization capabilities on top of the content indexed on an Elasticsearch cluster. Users can create bar, line and scatter plots, or pie charts and maps on top of large volumes of data Requirement: Elasticsearch Steps executed in following powershell script: Download NSSM – the Non-Sucking Service Manager $webclient = New-Object System.Net.WebClient $url = "https://nssm.cc/release/nssm-2.24.zip" $file = "$pwd\nssm.zip" $webclient.DownloadFile($url,$file) Unzip NSSM zip file at some location $shell = new-object -com shell.application $zip = $shell.NameSpace("$pwd\nssm.zip") foreach($item in $zip.items()) { $shell.Namespace("C:\").copyhere($item) } Add nssm.exe application path in Environment Variables $env:path +=';C:\nssm-2.24\win64' Download Kibana $webclient = ...