realm-js/scripts/docker-wrapper.sh

21 lines
374 B
Bash
Raw Permalink Normal View History

2016-11-17 15:55:02 +00:00
#!/bin/sh
# This is a wrapper script which uses docker. It is used in CI, but can also
# be used locally.
#
# ./scripts/docker-wrapper.sh ./scripts/test.sh node
#
2016-11-17 15:55:02 +00:00
set -e
cmd=${@:-/bin/bash}
./scripts/docker_build_wrapper.sh ci/realm-js:build .
exec docker run --rm \
-u $(id -u) \
-e HOME=/tmp \
-v $(pwd):/source \
-w /source \
ci/realm-js:build \
${cmd}