mount_spec=$(pwd):/dcommjs/
image=avaauthority/dcomm-testing:master

echo "$DOCKER_PASS" | docker login --username "$DOCKER_USERNAME" --password-stdin
custom_params_json="{
    \"dcommgoImage\":\"/dcommjs/dcommgo/build/\",
    \"testParams\": {\"dcommJS\": { \"dir\": \"/dcommjs/\" } },
    \"executeTests\":[\"DcommJS\"]
}"

docker run -v $mount_spec $image ./local-e2e-tests.bin --custom-params-json="${custom_params_json}"
