2016-11-17 15:55:02 +00:00
|
|
|
#!/bin/sh
|
2016-11-24 13:29:19 +00:00
|
|
|
# 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}
|