Continuous Delivery ASP .NET MVC Application

This is a continuation of my previous post Continuous Delivery ASP .NET MVC Application I will explain step by step how to put in place the Continuous Delivery process explained in my previous post in a Continuous Integration & Delivery tool. In this case Microsoft Team Foundation Server. You can download or clone the code of the project included in the examples from GitHub. Create a build plan Our first step is to create a Build Plan. This plan is responsible to generate the artifacts, a deployable version of our application. ...

April 21, 2018 · 4 min · Mario Moreno

Continuous Delivery ASP .NET MVC Application

In this post I will explain the steps I follow to put in place a Continuous Delivery process for a .NET MVC Application. The proposed solution is based on WebDeploy and parameter files to generate one deployment package and deploy it to N environments. Something similar to the following picture. Image credits: https://confluence.atlassian.com/bamboo/deployment-projects-338363438.html The same process could be applied to WebForms and WebApi applications. Update: There is a second part of this post in which I explain how to orchestrate this process in MS Team Foundation Server ...

April 15, 2018 · 3 min · Mario Moreno

SonarQube

In this post I will explain all the steps I follow to install SonarQube in a Windows (Windows 10) environment. Windows Server steps should be the same except from resources location. You should surely connect to a remote database server, needs to configure remote access on that server. Also make the SonarQube server available outside (enable TCP port) etc. Most of the steps like configure it as a Windows service are explained in this post. ...

February 24, 2018 · 5 min · Mario Moreno

ASP .NET Core Identity

In this post I will explain all the steps I follow to create a default ASP .NET Core MVC application with Identity using MSSQL Server on Docker. I’m using a Mac but the same steps (maybe with some slightly differences in Windows) should be valid for Linux and Windows. Requirements .NET Core .NET Core installed, you can follow the steps from the official site: https://www.microsoft.com/net/learn/get-started/macos Docker Again you can follow the steps from the official site: https://www.docker.com/docker-mac ...

November 4, 2017 · 3 min · Mario Moreno

Command Line Compression Tools

There are several scenarios where is very useful to know how to compress/decompress files via command line. One example is the configuration of a continuous integration plan. We could need to compress directories to expose them as an artifact. Here is a short list of command line options for Windows and Linux and a third-party option using 7zip. Windows Built In Powershell (Windows 8+, Server 2012+) Compress Add-Type -A System.IO.Compression.FileSystem [IO.Compression.ZipFile]::CreateFromDirectory([folderPath], [zipFilePath]) folderPath: path to the folder to be compressed zipFilePath: destination zip file ...

September 7, 2017 · 2 min · Mario Moreno

Setup a .NET Core, VSCode & Docker Ubuntu Development Environment

On this post I will describe the steps I have followed to go from an Ubuntu 16.04 clean installation to a .NET Core and Docker development environment. Initial Setup This step is definitely not mandatory. By default Ubuntu comes with different great applications. As this is intended to be a development environment I prefer to remove some of the non-development related applications. At least the biggest in size. For example: ...

August 25, 2017 · 4 min · Mario Moreno

.NET Continuous Delivery/Deployment

In this post I will describe a process to generate and deploy a .NET 4.5 web application (including database) to a Windows Server. This process can be implemented to configure a Continuous Delivery or Deployment process in a Continuous Integration server. I will describe the process using Atlassian Bamboo as the continuous integration server. Only because is the tool I’m currently using but this process can be implemented in any other continuous integration server with just a few tweaks. ...

August 17, 2017 · 6 min · Mario Moreno

My Tools

I’m writing this post with VS Code in a Linux Ubuntu 16.04 laptop. But as a .NET developer I spent last fifteen years (and continue at work) working on different Windows based desktop/servers and laptop computers. Since 2010 I’ve started to work heavely wit virtual machines and different computers. I ended selecting different old and new tools, looking mainly for portable versions to fit in a little flashdrive. Here is my selection of tools, most of them I use in a daily basis. ...

August 8, 2017 · 3 min · Mario Moreno

The Development Wave

I bought my first laptop in 2008 a HP Pavilion Tx1330la Definitely more prettier than useful, at least for development :) By that time I was working in a company with hard .NET development background with a corporate Team Foundation Server 2008 as a source control and issue tracker. In that context my personal goal was to master .NET development and TFS. I configured a VirtualBox environment with Windows Server 2008 and installed TFS 2008. Then I was able to develop .NET applications with Visual Studio 2008 connected to my local TFS instance. All in my 1GB RAM HP Windows Vista Laptop.. ...

April 23, 2017 · 3 min · Mario Moreno

PostgreSQL Centos 7

Installation friendly for a JIRA or Bamboo installation afterwards. Install sudo yum install postgresql-server postgresql-contrib Init sudo postgresql-setup initdb Password authentication By default, PostgreSQL does not allow password authentication. sudo vi /var/lib/pgsql/data/pg_hba.conf Find the lines that looks like this, near the bottom of the file: pg_hba.conf excerpt (original) host all all 127.0.0.1/32 ident host all all ::1/128 ident Then replace “ident” with “md5”, so they look like this: ...

March 20, 2017 · 2 min · Mario Moreno