Install Extensions in Postgres Docker container

Recently I wanted use the Fluent migrator for seeding my postgres database, which was running as a docker container. I basically had a table User, which had a primary key of type UUID that needs to be auto-generated. My migration code looked as follows. Create.Table(User.TABLE_NAME) .WithColumn("id").AsGuid().NotNullable().WithDefaultValue(SystemMethods.NewGuid).PrimaryKey() .WithColumn("username").AsString().NotNullable() .WithColumn("password").AsString().NotNullable(); The above code would essentially turn out as the following postgres sql. … Continue reading Install Extensions in Postgres Docker container


Create Mongo Replicaset using Docker Compose

In this blog post, we will attempt to create MongoDb replicaset using docker compose. A replica set in mongodb is a group of mongod instances which maintains the same set of data. This enables applications to work despite one of the db servers going down. At every instance, there wil be only and only ONE primary node. Rest of the … Continue reading Create Mongo Replicaset using Docker Compose

Seed Postgres Database with FluentMigrator

In this blog post, we will address how to seed your Postgres Database when using FluentMigrator. In the example context, we have a Postges Database running on a docker container, and have a Web Api connecting to the database using Dapper. Dapper is a micro-orm, and while it is pretty good in what is does, … Continue reading Seed Postgres Database with FluentMigrator

Initialize RabbitMq Docker Container with preconfigured Queues

As we work with docker containers, it is often desired to initialize the containers with specific application needs. One of such requirements was to initialize RabbitMq container with predefined queue. To be more specific, the objective needs to be achieved using docker compose. In this approach, we would use docker volume to map the configurations, which in turn … Continue reading Initialize RabbitMq Docker Container with preconfigured Queues

#DockerDays Day 6 – Docker Compose

Until now, we have learned how to create images using dockerfile and used network to create channels for communicating between two containers. But it can be cumbersome to manage each container separately, particularly in multi-container applications which have dozens of containers. Building, running, and connecting multiple containers using individual dockerfile would be pretty hard and consume a lot of time and … Continue reading #DockerDays Day 6 – Docker Compose

#DockerDays Day 5 – Building Images with dockerfile

So far we have been downloading images from Docker Hub and running the containers. But how are these images created in the first place? How can we create our own images? In this part of the series of Docker Days, we will delve into building images and how to use the Docker file. Agenda Introduction to dockerfile ?FormatBuild ImageA … Continue reading #DockerDays Day 5 – Building Images with dockerfile

#DockerDays Day 4- Data Persistence

So far we have been mostly interested in running the container, without thinking too much about data. We have also briefly described how the containers add a read-write layer on top of the image's read-only layers while running a container. But what does that actually mean? What happens to the read-write layer when the container … Continue reading #DockerDays Day 4- Data Persistence

#DockerDays Day 3- Networking in Docker

In the previous part of the #DockerDays Series, we learned to run our first container. We also learned how to run a container and connect it from the host machine. As mentioned in the closing comments of the last part, so far we have worked on a single container environment. What happens when you have multiple containers running … Continue reading #DockerDays Day 3- Networking in Docker

Docker Days

Docker is an open-source containerization platform that allows developers to package applications into containers. Containers are standard executable components that package the application and its dependencies required to run in any environment. This series of blog posts aims to familiarize with different concepts involving docker and working with them. Day 1 : Introduction to Docker Concepts … Continue reading Docker Days

#DockerDays Day 2- Running your first Container

In the previous part of this series, we familiarized ourselves with different concepts involving Docker. In this part of the series, we will look into some of the basic commands and run our first container. The first step of course would be to install Docker on your PC. We will be using a Windows Host … Continue reading #DockerDays Day 2- Running your first Container