Skip to content

Instantly share code, notes, and snippets.

View benton's full-sized avatar

Benton Roberts benton

View GitHub Profile
@benton
benton / test-docker-io.sh
Last active May 13, 2021 21:25
tests IO on Docker volume
#!/usr/bin/env bash
# tests IO on Docker volume
set -eox pipefail
TEST_DIR=/var/lib/docker/iotest
EC2_AVAIL_ZONE=`curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone`
DATE=$(date +"%Y-%m-%dT%H:%M:%S")
TIMESTAMP=$(date +"%Y-%m-%d-%H%M%S")
HOST=`hostname -s`
TESTNAME="${HOST}-${TIMESTAMP}"