Posts

Showing posts from June 27, 2020

Containerization Recipe - Create a simple http server with nodeJS and docker

Image
It's been a while since I published my articles about docker, where I talked about the reason for the hype surrounding it, the influence it had on the way we perceive virtualisation and deploy software. I think it's time to move ahead and talk about application containerization. What are containerized applications? Application Containerization is a virtualisation method most commonly used to run and deploy distributed software without the need for a full virtual machine and ecosystem. In this article, we are going to touch and feel  virtualisation by creating a basic, very simple http server that is going to run inside a docker container.  First things first, you can't containerize what doesn't exist. So, without further ado, let's start writing out app.  My weapon of choice for this task is Javascript that provides a fairly good and intuitive (nodeJS) module for implementing http servers from scratch. I could actually use express, but to keep things simple, let'