summaryrefslogblamecommitdiff
path: root/tools/ci/scripts/docker_run_cross.sh
blob: 5c113f85cc8dd9cca1d077cc358b3ac973926278 (plain) (tree)
1
2
3
4
5
6
7
8
9







                            
                              







                                                                            
#!/bin/bash -x

echo "IMAGE: ${IMAGE}"
echo "PACKAGES: ${PACKAGES}"
echo "CROSS: ${CROSS}"
echo "COMMAND: ${COMMAND}"
echo "JOBS: ${JOBS}"

docker pull ${IMAGE} || exit 1
docker run \
    --volume=$(pwd):/build:rw \
    -e PACKAGES="${PACKAGES}" \
    -e COMMAND="${COMMAND}" \
    -e JOBS="${JOBS}" \
    -e CROSS="${CROSS}" \
    ${IMAGE} \
    /bin/sh -x -c "cd /build; pwd; ./tools/ci/scripts/docker_incontainer.sh"