Files
cypress/scripts/run-docker-local.sh
T
2019-12-02 13:01:27 -05:00

18 lines
412 B
Bash
Executable File

set e+x
echo "This script should be run from cypress's root"
name=cypress/browsers:node12.8.1-chrome78-ff70
echo "Pulling CI container $name"
docker pull $name
echo "Starting Docker image with cypress volume attached"
echo "You should be able to edit files locally"
echo "but execute the code in the container"
docker run -v $PWD:/home/person/cypress \
-w /home/person/cypress \
-it $name \
/bin/bash