github.com/coreos/rocket@v1.30.1-0.20200224141603-171c416fac02/scripts/build-rir.sh (about) 1 #!/bin/bash 2 3 set -xe 4 5 SRC_DIR="${SRC_DIR:-$PWD}" 6 BUILDDIR="${BUILDDIR:-$PWD/build-rir}" 7 RKT_BUILDER_ACI="${RKT_BUILDER_ACI:-coreos.com/rkt/builder:1.3.0}" 8 RKT_CMD="${RKT_CMD:-rkt}" 9 10 mkdir -p $BUILDDIR 11 12 $RKT_CMD run \ 13 --dns=8.8.8.8 \ 14 --volume src-dir,kind=host,source="${SRC_DIR}" \ 15 --volume build-dir,kind=host,source="${BUILDDIR}" \ 16 --interactive \ 17 $RKT_BUILDER_ACI $@