mirror of
https://github.com/rkt/rkt.git
synced 2025-08-06 13:48:46 +08:00
18 lines
390 B
Bash
Executable File
18 lines
390 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -xe
|
|
|
|
SRC_DIR="${SRC_DIR:-$PWD}"
|
|
BUILDDIR="${BUILDDIR:-$PWD/build-rir}"
|
|
RKT_BUILDER_ACI="${RKT_BUILDER_ACI:-coreos.com/rkt/builder:1.3.0}"
|
|
RKT_CMD="${RKT_CMD:-rkt}"
|
|
|
|
mkdir -p $BUILDDIR
|
|
|
|
$RKT_CMD run \
|
|
--dns=8.8.8.8 \
|
|
--volume src-dir,kind=host,source="${SRC_DIR}" \
|
|
--volume build-dir,kind=host,source="${BUILDDIR}" \
|
|
--interactive \
|
|
$RKT_BUILDER_ACI $@
|