devops

bash
#!/bin/bash
# Docker Compose commands

# Start all services
docker compose up -d

Docker Compose for multi-container applications

docker docker-compose devops
by Ryan Nakamura 2 tabs
dockerfile
# Optimized production Dockerfile

# Stage 1: Dependencies
FROM node:20-alpine AS deps
WORKDIR /app

Docker image optimization and security scanning

docker optimization security
by Ryan Nakamura 2 tabs
yaml
stages:
  - lint
  - test
  - build
  - deploy

CI/CD pipeline with GitLab CI

ci-cd gitlab devops
by Ryan Nakamura 1 tab
hcl
# Backend configuration with S3 + DynamoDB locking
terraform {
  backend "s3" {
    bucket         = "company-terraform-state"
    key            = "services/web-app/terraform.tfstate"
    region         = "us-east-1"

Terraform state management and workspace strategies

terraform state-management iac
by Ryan Nakamura 2 tabs
yaml
# Prometheus configuration
global:
  scrape_interval: 15s
  evaluation_interval: 15s
  scrape_timeout: 10s

Prometheus monitoring and alerting configuration

prometheus monitoring alerting
by Ryan Nakamura 2 tabs
yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: user-service
  labels:
    app: user-service

Kubernetes deployment configuration

java kubernetes k8s
by David Kumar 5 tabs
makefile
# Project Makefile
.DEFAULT_GOAL := help

# Variables
APP_NAME := web-app
VERSION := $(shell git describe --tags --always --dirty)

Makefile for DevOps task automation

makefile automation devops
by Ryan Nakamura 1 tab
bash
#!/bin/bash
# Linux system administration commands

# === Process Management ===
ps aux                                # All processes
ps aux | grep nginx                   # Find specific process

Linux system administration essentials for DevOps

linux sysadmin devops
by Ryan Nakamura 1 tab
yaml
# Pre-commit hooks configuration
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.5.0
    hooks:
      - id: trailing-whitespace

Git workflows and branching strategies for teams

git workflows branching
by Ryan Nakamura 2 tabs
yaml
---
# Main playbook
- name: Configure web servers
  hosts: webservers
  become: yes
  vars:

Ansible playbooks for configuration management

ansible configuration-management devops
by Ryan Nakamura 2 tabs
javascript
// Configuration management with validation
const Joi = require('joi');

// Define schema for all environment variables
const envSchema = Joi.object({
  NODE_ENV: Joi.string()

Environment variable management and secret rotation

environment-variables secrets configuration
by Ryan Nakamura 2 tabs
dockerfile
# Multi-stage build for a Node.js application

# Stage 1: Build
FROM node:20-alpine AS builder

WORKDIR /app

Docker fundamentals: images, containers, and layers

docker containers devops
by Ryan Nakamura 2 tabs