mirror of https://github.com/krallin/tini.git
24 lines
490 B
Bash
Executable File
24 lines
490 B
Bash
Executable File
#!/bin/bash
|
|
set -o errexit
|
|
set -o nounset
|
|
|
|
REL_HERE=$(dirname "${BASH_SOURCE}")
|
|
HERE=$(cd "${REL_HERE}"; pwd)
|
|
|
|
IMG="tini"
|
|
SRC="/tini"
|
|
|
|
# Cleanup the build dir
|
|
rm -f "${HERE}/dist"/*
|
|
|
|
# Create the build image
|
|
docker build -t "${IMG}" .
|
|
|
|
# Run test without subreaper support, don't copy build files here
|
|
docker run --rm \
|
|
--volume="${HERE}:${SRC}" \
|
|
-e BUILD_DIR=/tmp/tini-build \
|
|
-e SOURCE_DIR="${SRC}" \
|
|
-e FORCE_SUBREAPER="${FORCE_SUBREAPER}" \
|
|
"${IMG}" "${SRC}/ci/run_build.sh"
|