StackPractices

Tag: devops

Browse 117 practical software engineering resources tagged with "devops". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving devops. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.

DevOps Practices and Culture

DevOps is the practice of bridging development and operations so that teams can deliver software faster, safer, and more reliably. It combines automation, infrastructure as code, continuous integration and delivery, monitoring, and a culture of shared ownership.

The guides and recipes below cover CI/CD pipelines, containerization, cloud provisioning, observability, incident management, and security automation. Use them to build systems that are repeatable, auditable, and resilient under real-world load.

Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.

Parse Server Log Files with Python, Java and JavaScript

Parse and analyze server log files with Python, Java, and JavaScript. Covers regex, structured...

Database Schema Evolution

Evolve database schemas safely with backward-compatible changes, versioned migrations, and online...

Ansible Playbook for Server Configuration

How to write and run Ansible playbooks for provisioning, configuring, and managing servers with...

Deploy Containers to AWS ECS with Fargate

How to deploy Docker containers to AWS ECS using Fargate serverless compute with Terraform and...

Background Jobs

How to schedule and run background jobs using cron, task queues, and workers.

Backup Rotation Script in Bash

Automated backup with retention policies using bash and find.

Bash Scripting for DevOps Automation and System Tasks

How to write reliable Bash scripts for automating deployments, system monitoring, log rotation, and...

Blue-Green Deployment Recipe

Deploy with zero downtime using blue-green environments, instant traffic switching, and automated...

Chaos Engineering

Build resilient systems by intentionally injecting failures and observing how your distributed...

CI/CD Pipeline Setup

Set up automated CI/CD pipelines for testing, building, and deploying applications with GitHub...

CLI Argument Parsing in Python, JS, Java, Go, and Rust

Build command-line tools that handle flags, positional arguments, subcommands, and validation in...

Container Image Security Scanning with Trivy

Scan Docker images for vulnerabilities, misconfigurations, and secrets using Trivy, integrate...

Cron Jobs

How to schedule and manage recurring tasks using cron syntax across Linux, Python, and Node.js.

Docker Basics

How to containerize an application, write a Dockerfile, and run containers with Docker Compose.

Docker Compose Dev/Prod Split: Separate Environments

Separate development and production Docker Compose configs with overrides

Local Microservices Development with Docker Compose

Orchestrate multi-service local environments with Docker Compose including databases, caches,...

Override Docker Compose Configs per Environment

How to use Docker Compose override files for environment-specific configurations, covering dev,...

Slim Production Images with Multi-Stage Docker Builds

How to build minimal production Docker images using multi-stage builds with distroless base images,...

Docker Multi-Stage Build Optimization for Smaller Images

Reduce Docker image size with multi-stage builds and proper layering

Environment Variables

How to read, set, and manage environment variables securely across Python, JavaScript, and Java.