Fading Coder

One Final Commit for the Last Sprint

Orchestrating Multi-Container Applications with Docker Compose

Docker Compose Overview Problem Statement When working with Docker, complex applications typically require multiple services running simultaneously. A typical Django project might need MySQL, Redis, and other dependencies. Maanging these as separate containers individual becomes cumbersome and error...

Jenkins Container Deployment with Docker and CI/CD Pipeline Setup

Running Jenkins in Docker Start Jenkins container witth the following command: docker run -d \ --name jenkins-server \ -p 8080:8080 \ -p 50000:50000 \ -v /opt/jenkins/data:/var/jenkins_home \ -v /var/run/docker.sock:/var/run/docker.sock \ -v $(which docker):/usr/local/bin/docker \ -e TZ=UTC \ jenkin...

Containerized Jenkins Deployment with Docker Compose

Docker Environment Setup (CentOS) sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum install -y docker-ce docker-ce-cli containerd.io sudo systemctl enable --now docker Workspace and Configuration Layout mkdir -p /opt/ci/...

Essential Server Configuration Steps for Microservice Deployments

1. Persisting Firewall Port Rules When exposing services to external traffic, port configurations must survive system reboots. Using firewalld, rules are applied to the runtime environment by default. To make them permanent, append the --permanent flag: sudo firewall-cmd --zone=public --add-port=808...

Deploying OpenSearch with Docker for Development and Testing

Overview of OpenSearch OpenSearch is an open-source, distributed search and analytics suite derived from a fork of Elasticsearch. It supports use cases such as full-text search, log and infrastructure monitoring, security analytics, and operational observability. The project is maintained under the...

Kubeadm-Based Kubernetes Cluster Setup and Configuration

Clear any existing container runtime installations: sudo yum remove -y docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine docker-ce docker-ce-cli containerd.io Install necessary dependencies and configure the repository: sudo...

Docker Container Development: Virtualization

Docker's core value lies in virtualization, or more specifically, environment isolation. Through virtualization technology, Docker implements virtual environments that solve dependency issues in configuration and deployment, enabling decoupling. My understanding of virtualization comes from "O...

Docker Daemon Configuration and Image Management Essentials

Docker leverages specific Linux kernel features to provide an isolated and resource-managed environment for applications. Key among these are Namespaces and Cgroups. Namespaces are responsible for isolating resources like CPU, memory, and network, ensuring that containers operate independently witho...

Building Docker Images Without Cache: A Technical Guide

Understanding Docker's Build Cache Mechanism Docker's caching mechanism significantly optimizes image builds by reusing unchanged layers, which reduces storage requirements and build times. However, effectively utilizing this cache requires understanding its behavior and limitations. Cache Behavior...

Refactoring Code: Choosing Functions Over Object-Oriented Structures in Go

Recently I needed to write a new business module that closely resembled one I had written two years ago in Go. I initially planned to adopt the old code, but it turned out to be too tightly coupled to its original context. Small modificasions wouldn’t cut it, so I decided to refactor the core logic....