DevOps & tooling
Containers, Git, CI and cloud hosting. 32 posts, newest first. All topics
Docker and Local Dev EnvironmentsHow I use Docker and docker-compose for local development, mail capture, test stacks and scraper/OCR services.
Working on Several Branches at Once with git worktreeCheck out more than one branch of a repository at the same time with git worktree: add, list, move, remove and prune, and what the worktrees share.
Kubernetes Liveness, Readiness and Startup Probes ExplainedWhat each Kubernetes probe does, the four probe types, how the timing fields add up, why liveness should not check dependencies, and a Deployment that gets it right.
Writing Reusable Terraform Modules: Inputs, Outputs and VersioningStructure a Terraform module, validate its input variables, expose outputs, call it locally, from the registry and with for_each, and pin module versions safely.Beyond the Whale: The Architecture, Trade-Offs, and Implementation of Post-Docker Container FrameworksDitch Docker Desktop. Explore modern OCI-compliant alternatives like Podman, containerd, OrbStack, and native host engines including Windows wslc.exe and Apple's native container toolchain without daemon overhead.
Running Services and Scheduled Jobs with systemd Units and TimersWrite a systemd service for a web app with restarts and an environment file, read its logs with journalctl, and replace cron jobs with timers, including user units.
Caddy as a Reverse Proxy with Automatic HTTPSPut Caddy in front of your apps: reverse_proxy, automatic certificates and what they need, several sites, headers, load balancing, Compose and local HTTPS.
Smaller Docker images with multi-stage buildsSplit a Dockerfile into builder and runtime stages: COPY --from, slim and distroless bases, BuildKit cache mounts, .dockerignore, and how to check what an image contains.
Matrix builds and dependency caching in GitHub ActionsTest across operating systems and runtime versions with strategy.matrix, include, exclude and fail-fast, and cache dependencies with setup-* and actions/cache.
Reusable workflows and composite actions in GitHub ActionsShare CI logic across jobs and repositories with workflow_call reusable workflows and composite actions: inputs, secrets, outputs, when to use which, and versioning.
Git cherry-pick, merge strategy options, and release tags in shell scriptsApplying single commits with git cherry-pick, resolving conflicts automatically with -X ours/theirs and rerere, and scripting annotated or signed release tags.
Getting started with Apache Maven: project layout, lifecycle and dependenciesWhat Apache Maven does, the standard project layout, how the build lifecycle and dependencies work, and how to generate, build and run a project from the command line.
Ranking engineers by commits and lines of code with Git and BashFour Bash scripts that use git log, git shortlog and git blame to count each author's commits, touched files, changed lines and surviving lines in a repository.
Apache Tomcat: architecture, configuration and a first servletWhat Apache Tomcat is, how Catalina, Coyote and Jasper fit together, which config file does what, and how to deploy a Jakarta servlet on Tomcat 11.
Storing PEM keys in cloud environment variables with base64Why multi-line values like PEM keys break in environment variables, and how to base64-encode them in bash and decode them in JavaScript.
GitHub vs GitLab vs Bitbucket: choosing a Git hostHow GitHub, GitLab and Bitbucket differ on CI/CD, self-hosting, licensing and integrations, and which kind of project each one suits.
Apache Commons Lang, IO and Collections: examples in JavaWorking examples of Apache Commons Lang (StringUtils, NumberUtils), Commons IO (FileUtils) and Commons Collections (MultiValuedMap), with current Maven coordinates.
Apache Lucene basics: indexing and searching text in JavaHow Apache Lucene indexes and searches text, how BM25 ranks results, and a runnable Java example that builds an index and queries it with Lucene 10.
Apache POI: reading and writing Excel, Word and PowerPoint files in JavaUsing Apache POI 6 to create, style and read Excel workbooks and to generate Word and PowerPoint files from Java, with runnable examples.
Apache Struts 2: actions, interceptors and security practicesHow Apache Struts 2 handles requests with actions, interceptors and struts.xml, with a small Struts 7 example and the security practices that matter most.
Eclipse Jetty: an introduction to the Java web server and servlet containerWhat Eclipse Jetty is, how its server, connectors and handlers fit together in Jetty 12, and how to embed it in a Java app or run it standalone.
GitHub Actions basics: YAML, cron schedules, push triggers and keeping scheduled workflows aliveThe YAML and cron syntax you need for GitHub Actions workflows, with a scheduled scraper, push triggers, and a workaround for the 60-day schedule shutoff.
Apache Kafka basics: topics, partitions, producers and consumer groupsHow Apache Kafka stores events in partitioned, replicated logs, how producers and consumer groups use them, and how to run a single KRaft broker locally.
Caching npm dependencies in GitHub Actions with actions/cacheHow actions/cache restores and saves node_modules between GitHub Actions runs, the cache-key pitfalls, and how I used it in this Astro blog's build workflow.
A GitHub Action that reports the runner's public IP address and locationBuilding a TypeScript GitHub Action that looks up the runner's public IP with jsonip.com, fetches location details for it, and exposes them as step outputs.
Publishing a Java Maven package to GitHub Packages and JitPackHow I published a small Java library to GitHub Packages with a GitHub Actions workflow, and made it available through JitPack.
Listing git commits between two tags, filtered by author or messageUse git log ranges with --author, --grep and --no-merges to list the commits that went into a release, such as all JIRA tickets between two tags.
Simple script to checkout filesbash script to checkout files using bash
Heroku shutdown how to migrate to koyebBasic explaination of how I migrating my discord rss bot to koyeb
Modules in PerlHow to create modules in perl
Details to install wsl2 on windows without using the windows storeA summary of lessons learned from installing wsl2 with a broken windows store app.
What I did to transfer docker images from dockerhub to ghcrTransferring images from dockerhub with ghcr with code included.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)