Replaced dd w/ fio; Added fio/iperf3 binaries; Added 32-bit and IPv6 support

This commit is contained in:
Mason Rowe
2020-02-04 21:43:28 -05:00
parent a6ca7214aa
commit 2c74b1a9b6
12 changed files with 337 additions and 144 deletions

56
bin/compile.sh Executable file
View File

@@ -0,0 +1,56 @@
#!/bin/bash
set -e
# Activate Holy Build Box lib compiliation environment
source /hbb/activate
set -x
yum install -y xz
# determine arch
ARCH=$(uname -m)
if [[ $ARCH = *x86_64* ]]; then
# container is 64-bit
ARCH="x64"
elif [[ $ARCH = *i?86* ]]; then
# container is 32-bit
ARCH="x86"
fi
# download, compile, and install libaio as static library
cd ~
curl -L http://ftp.de.debian.org/debian/pool/main/liba/libaio/libaio_0.3.112.orig.tar.xz -o "libaio.tar.xz"
tar xf libaio.tar.xz
cd libaio-*/src
ENABLE_SHARED=0 make prefix=/hbb_exe install
# Activate Holy Build Box exe compilation environment
source /hbb_exe/activate
# download and compile fio
cd ~
curl -L https://github.com/axboe/fio/archive/fio-3.17.tar.gz -o "fio.tar.gz"
tar xf fio.tar.gz
cd fio-fio*
./configure
make
# verify no external shared library links
libcheck fio
# copy fio binary to mounted dir
cp fio /io/fio_$ARCH
# download and compile iperf
cd ~
curl -L https://github.com/esnet/iperf/archive/3.7.tar.gz -o "iperf.tar.gz"
tar xf iperf.tar.gz
cd iperf*
./configure --disable-shared --disable-profiling
make
# verify no external shared library links
libcheck src/iperf3
# copy iperf binary to mounted dir
cp src/iperf3 /io/iperf3_$ARCH