Posts

Showing posts with the label docker

Podman vs Docker: Key Differences and Which One to Choose

Image
  If you’re a developer, sysadmin, or just someone curious about the containerization buzz, you’ve probably heard these names tossed around. But what’s the deal? Which one should you use? And is one better than the other? Buckle up as we explore these tools in an interactive and entertaining journey. An Overview Before we jump into the nitty-gritty, let’s set the stage with a brief overview of Podman and Docker. Both are powerful containerization tools that allow you to run applications in isolated environments, but they have different philosophies and ways of doing things. Docker is the reigning champ in the containerization world, beloved for its simplicity and robust ecosystem. Podman , on the other hand, is the challenger, with a focus on security and flexibility, aiming to address some of Docker’s shortcomings. Let’s dive into each one in detail. What is Docker? Imagine Docker as a magical box that lets you package up your entire application—code, runtime, libraries, and all ...

Automate Testing on BitBucket for Golang CRUD App with Docker

Image
 Testing is a crucial aspect of software development, ensuring reliability, functionality, and performance before deployment. In this blog, we will explore how to test a Golang CRUD application on Bitbucket using Docker for database and dependencies. We will approach it from both a developer's and a DevOps perspective, covering unit tests, integration tests, CI/CD automation, and best practices. Overview of the Application We will use a Golang CRUD application that utilizes GraphQL , PostgreSQL , and the go-chi router . The app has two main entities: Author Post The application supports operations like creating, reading, updating, and deleting ( CRUD ) authors and posts. Key Technologies Used: Golang : The programming language. PostgreSQL : The database running via docker. GraphQL : The API query language. Docker & Docker Compose : For containerizing the application and dependencies. Bitbucket Pipelines : For automated testing and deployment. Step 1: Writing Unit Tests Un...