mirror of https://github.com/krallin/tini.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
332 B
15 lines
332 B
#!/bin/bash |
|
set -o errexit |
|
set -o nounset |
|
|
|
REL_HERE=$(dirname "${BASH_SOURCE}") |
|
HERE=$(cd "${REL_HERE}"; pwd) |
|
|
|
IMG="tini" |
|
SRC="/tini" |
|
|
|
# Create the build image |
|
docker build -t "${IMG}" . |
|
|
|
# Run the build |
|
docker run --rm --volume="${HERE}:${SRC}" -e BUILD_DIR=/tmp/tini-build -e SOURCE_DIR="${SRC}" "${IMG}" "${SRC}/ci/run_build.sh"
|
|
|