Skip to content

Instantly share code, notes, and snippets.

View tobybellwood's full-sized avatar

Toby Bellwood tobybellwood

View GitHub Profile
git filter-repo --path README.md --path .gitignore --path docker-compose.yaml --path Jenkinsfile --path Makefile --path package.json --path yarn.lock --path .env.defaults --path tsconfig.json --path build/ --path images/ --path local-dev/ --path node-packages/ --path services/ --path tests/
git filter-repo --path README.md --path .gitignore --path docker-compose.yaml --path Jenkinsfile --path Makefile --path .env.defaults --path build/ --path images/ --path local-dev/ --path tests/
@tobybellwood
tobybellwood / Makefile
Created August 4, 2020 09:05
WIP image-only Makefile
SHELL := /bin/bash
# amazee.io lagoon Makefile The main purpose of this Makefile is to provide easier handling of
# building images and running tests It understands the relation of the different images (like
# nginx-drupal is based on nginx) and builds them in the correct order Also it knows which
# services in docker-compose.yml are depending on which base images or maybe even other service
# images
#
# The main commands are:
# make build/<imagename>
@tobybellwood
tobybellwood / brew_leaves.txt
Last active April 1, 2024 21:13
toby.bellwood@gmail.com
$ brew leaves
act
adns
ahoy
anchore/grype/grype
anchore/syft/syft
ansible
ansible-lint
aquasecurity/trivy/trivy
asciinema
@tobybellwood
tobybellwood / create_jwt.sh
Created August 1, 2020 02:44
A BASH drop-in replacement for the create_jwt.py used in Lagoon (requires openssl & jq)
#!/usr/bin/env bash
#
# JWT Encoder Bash Script
# modified from https://willhaley.com/blog/generate-jwt-with-bash/
#
secret=${JWTSECRET}
@tobybellwood
tobybellwood / govcms_patches.json
Created February 21, 2020 06:40
JSON for govcms-patches
{
"type": "package",
"package": {
"type": "metapackage",
"name": "govcms/govcms-patches",
"version": "1.0.0",
"require": {
"netresearch/composer-patches-plugin": "~1.0"
},
"extra": {
@tobybellwood
tobybellwood / composer.json
Last active April 5, 2020 00:31
GovCMS8 D9 version
{
"name": "govcms/govcms",
"description": "GovCMS8 Drupal Distribution",
"keywords": ["GovCMS", "GovCMS8"],
"type": "drupal-profile",
"license": "GPL-2.0-or-later",
"homepage": "https://www.govcms.gov.au",
"support": {
"issues:": "https://github.com/govCMS/govCMS8/issues",
"wik": "https://github.com/govCMS/govCMS8/wiki",
@tobybellwood
tobybellwood / .mypygmy.yml
Created December 18, 2019 08:47
Sample pygmy-go config file to enable phpmyadmin and portainer
services:
amazeeio-portainer:
Name: amazeeio-portainer
URL: http://docker.amazee.io:9000
Disabled: false
Config:
Image: portainer/portainer
HostConfig:
RestartPolicy:
Name: always
@tobybellwood
tobybellwood / .lagoon.yml
Last active December 11, 2019 20:41
sample expanded .lagoon.yml (E&OE)
docker-compose-yaml: docker-compose.yml
project: XXXXXXXXX
tasks:
pre-rollout:
tasks:
pre-rollout:
- run:
name: Set backup and config dirs as env vars
@tobybellwood
tobybellwood / docker-compose.yml
Created August 2, 2018 21:15
Sample SaaS+ dc file
version: '2.3'
x-lagoon-project:
# Lagoon project name (leave `&lagoon-project` when you edit this)
&lagoon-project govcms-lagoon-sassplus
x-volumes:
&default-volumes
# Define all volumes you would like to have real-time mounted into the docker containers
volumes:
### Keybase proof
I hereby claim:
* I am tobybellwood on github.
* I am tobybellwood (https://keybase.io/tobybellwood) on keybase.
* I have a public key ASBNMG_3DK0R8Y8s7LEBsWOVsYF0H5UuWJehyQmVtl8LzQo
To claim this, I am signing this object: