Skip to content

Instantly share code, notes, and snippets.

View jonpugh's full-sized avatar

Jon Pugh jonpugh

View GitHub Profile
@jonpugh
jonpugh / molecule.yml
Last active October 17, 2019 05:33
Better Molecule "dependency" Experience
# Configure the "dependency" action.
dependency:
name: galaxy
# Set 'ansible-galaxy install' command line options
options:
# Turn off '--force' option so 'ansible-galaxy' doesn't re-download the files every time you run 'molecule'.
force: false
@jonpugh
jonpugh / README.md
Last active January 25, 2021 10:11
Modern Symfony/Drupal Development on Windows 10 with WSL / Ubuntu

I bought a $129 Lenovo Windows Laptop

Let's see how much we can get out of this thing.

Rules

  1. Native tools only. No Docker. No Virtualization. No "local dev" products.
  2. Minimize the number of apps. No Chrome.
  3. Use Windows apps whenever possible. VSCode vs IntelliJ
  4. Document all of our steps.
@jonpugh
jonpugh / delete-hosting-task-logs.sql
Created January 6, 2020 15:40
Aegir Hosting Task Logs Cleanup
# Delete all hosting_task_logs from all sites that are deleted.
DELETE htl.* FROM hosting_task_log htl LEFT JOIN hosting_task ht ON htl.vid = ht.vid LEFT JOIN hosting_site hs ON ht.rid = hs.nid WHERE hs.status = -2;
@jonpugh
jonpugh / docker-compose.yml
Last active January 17, 2020 18:11
Our Monitoring Stack
version: "2"
volumes:
grafana-data:
prometheus-data:
graphite-data:
services:
nginx:
restart: always
image: nginx
@jonpugh
jonpugh / README.md
Last active May 19, 2020 16:53
OpenDevShop: A DevOps Framework

Presentation Draft

Re-introducting OpenDevShop 2020: The Open Source DevOps Framework

Summary

For 2020, OpenDevShop is rebranding from a "Cloud Hosting Platform" to an "Open Source DevOps Framework". The DevShop project is following Symfony's lead by creating components that can be used anywhere, or brought together to build any kind of DevOps platform. This session will cover the DevShop Components you might find useful in your Drupal projects for Testing and DevOps, as we create a brand new Drupal 8 site and try to migrate it to Drupal 9.

Abstract

"DevOps" is a wide-ranging practice, but at it's core, it is about one thing: getting software to run on servers.

@jonpugh
jonpugh / docker-entrypoint-boot-command
Created June 1, 2026 14:42
Dockerfile Entrypoint script that runs BOOT_COMMAND before whatever the docker command is.
#!/bin/bash
set -e
echo "Hello from docker-entrypoint-boot-command!"
if [[ -n "${BOOT_COMMAND}" ]]; then
echo "> Running BOOT_COMMAND:"
echo $BOOT_COMMAND
echo
echo ============================