realm-js/scripts/docker-wrapper.sh

21 lines
374 B
Bash
Executable File

#!/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
#
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}