docker_run.sh 428 Bytes
Newer Older
spmohanty's avatar
spmohanty committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash


if [ -e environ_secret.sh ]
then
    echo "Note: Gathering environment variables from environ_secret.sh"
    source environ_secret.sh
else
    echo "Note: Gathering environment variables from environ.sh"
    source environ.sh
fi

# Expected Env variables : in environ.sh
sudo docker run \
    --net=host \
    -v ./scratch/test-envs:/flatland_envs:z \
    -it ${IMAGE_NAME}:${IMAGE_TAG} \
    /home/aicrowd/run.sh