Skip to content

Instantly share code, notes, and snippets.

View lox's full-sized avatar

Lachlan Donald lox

View GitHub Profile
@lox
lox / buildkite-cli.md
Created August 12, 2017 03:24
A plan for a buildkite-cli tool.

Buildkite CLI

A cli tool for interacting with buildkite.com from your terminal.

buildkite configure

Sets up the tool, asks for a Buildkite graphql token and a default organization.

@lox
lox / INSTALL.md
Created July 6, 2017 10:18
Reproducing Packer/Anka Builder Plugin errors
# Install golang
brew install go
mkdir $HOME/go
export GOPATH=$HOME/go
# Checkout packer builder
mkdir -p $HOME/go/src/github.com/lox
@lox
lox / benchmarks.md
Last active June 28, 2017 01:15
Anka benchmarks

Benchmarking method

These are all done with a VM created with 10.12.3:

anka create-disk --size 20G --app /Applications/Install\ macOS\ Sierra.app
anka create --image-id $(image_id) anka-disk-base-xxx
anka start anka-disk-base-PVcEAPVQtr
@lox
lox / pipeline.yml
Last active June 22, 2017 06:34
Windows buildkite-agent test
steps:
- name: Show env
command: env
agents:
queue: "$BUILDKITE_AGENT_META_DATA_QUEUE"
- name: Test Batch File
command: test.bat
agents:
queue: "$BUILDKITE_AGENT_META_DATA_QUEUE"
@lox
lox / buildkite-agent-wrapper
Last active June 16, 2017 03:09
Create a wrapper for buildkite-agent to source config from a custom credential management system
#!/bin/bash
set -e -a
source /etc/my_secrets
exec /usr/bin/buildkite-agent "$@
@lox
lox / exec.go
Created May 4, 2017 03:27
Test of process group signalling
package main
import (
"fmt"
"os"
"os/exec"
"os/signal"
"syscall"
"time"
)
@lox
lox / pipeline.yml
Last active May 4, 2017 02:47 — forked from toolmantim/pipeline.yml
Testing agent signal handling
steps:
# - name: Test 1
# command: test-1.sh
# agents:
# queue: "$BUILDKITE_AGENT_META_DATA_QUEUE"
# - name: Test 2
# command: test-2.sh
# agents:
# queue: "$BUILDKITE_AGENT_META_DATA_QUEUE"
- name: Test 3
@lox
lox / README.md
Last active December 17, 2018 23:48
Proposal for top level plugins block in pipeline.yml

Top-level plugins block in pipeline.yml

Currently plugins need to be applied to each step, which ends up being verbose and it's easy for them to get out of synch as changes are made.

I'm proposing a top level plugin block that would allow plugins to be declared that would then apply to all steps.

This would aim to solve the current pain points:

  • Version declarations need to be repeated
@lox
lox / README.md
Last active December 1, 2017 01:09
Troubleshooting AWS Stack

Troubleshooting your Elastic CI Stack

https://github.com/buildkite/elastic-ci-stack-for-aws

If you are having issues with your elastic stack and none of the suggested troubleshooting steps help, post to the #aws-stack channel on https://chat.buildkite.com/ and we'll assist.

Some details that will help us (feel free to directly message @lox or post in your company private channel if they contain private information).

@lox
lox / make_docker_great_again.sh
Last active January 19, 2023 07:17
Tweak flush and sync settings for Docker for Mac
#!/bin/bash
set -euo pipefail
# via https://github.com/docker/for-mac/issues/668#issuecomment-284028148
cd ~/Library/Containers/com.docker.docker/Data/database
git config --global user.useconfigonly false
git reset --hard > /dev/null
mkdir -p ./com.docker.driver.amd64-linux/disk
touch ./com.docker.driver.amd64-linux/disk/full-sync-on-flush