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

PostgreSQL Ubuntu

PostgreSQL Ubuntu installation. Default port 5432. Install sudo apt-get update sudo apt-get install postgresql postgresql-contrib Test Installation sudo -i -u postgres psql \quit Example: Create Bamboo Database sudo -s -H -u postgres createuser -S -d -r -P -E bamboouser createdb -O bamboouser bamboodb Testing the connection sudo adduser bamboouser sudo -i -u bamboouser psql -d bamboodb Links https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-14-04 https://confluence.atlassian.com/bamboo/postgresql-289276816.html

March 20, 2017 · 1 min · Mario Moreno

SQL Server Windows Installation

SQL Server Windows Installation (thinking on an installation of JIRA, Bamboo and Crucible afterward) The installation steps are based on SQL Server 2014 (the current version supported by JIRA and Bamboo) you can download it from the official Microsoft site: https://www.microsoft.com/en-US/download/details.aspx?id=42299 Additionally you can download and install SQL Server Management Studio. 16.5.3 in this case. Again you can download it from the official Microsoft site: https://msdn.microsoft.com/library/mt238290.aspx Installation Click on New SQL Server stand-alone installation… ...

March 20, 2017 · 2 min · Mario Moreno

Bamboo Linux Agent Installation

On this post I will describe my experience installing a Bamboo agent on a Linux server (CentOS based) Requirements JDK It’s strongly recommended to install the same JDK version as the Bamboo server. You can follow my post about how to install the JDK in a CentOS server. In my case the configuration is: java version "1.8.0_51" Java(TM) SE Runtime Environment (build 1.8.0_51-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode) Agent JAR The next step is to download the agent JAR from our Bamboo server. It can be found in: ...

March 4, 2017 · 3 min · Mario Moreno

.NET Code Coverage Process

In this post I will describe a very cheap process to calculate unit tests Code Coverage and generate a html report with the results as part of our development process. I’m using OpenCover and ReportGenerator. You can directly call them by command line they support several configurations and parameters: OpenCover Usage Wiki, ReportGenerator. In this case I’m using two .cmd files I wrote and usually include in my development projects. The open-cover.cmd file recursively look for test assemblies and run opencover to generate an open-cover.xml report. The report-generator.cmd file take an open-cover.xml report as input and generate a coverage-report folder with a human friendly html report ready to be deployed to a web server. ...

February 27, 2017 · 3 min · Mario Moreno

Bamboo .NET Continuous Integration

On this post I will describe the configuration of a Continuous Integration plan with Bamboo. The project is a simple wrapper for Virtual Clone Drive. A .Net application initially written several years ago. This simple application will serve as a good example about how to configure a Continuous Integration plan in Bamboo. Create Plan First we should create the Plan. In order to do that we should go to Create > Create a new plan option and configure the project name, project key, plan name and plan key. Also we have to configure the source code repository in this case GitHub. ...

February 26, 2017 · 4 min · Mario Moreno