realm-js/scripts/docker-wrapper.sh

18 lines
323 B
Bash
Raw Normal View History

2016-11-17 15:55:02 +00:00
#!/bin/sh
# This is a wrapper script which uses docker. It allows you to run commands
# in a docker environment.
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}