Files
php-curl-class/tests/dockerfiles/php71/2_start.sh
T
2018-11-29 22:10:48 -08:00

16 lines
379 B
Bash
Executable File

# Run image to create container.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
set -x
cd "${SCRIPT_DIR}/../../.."
project_dir="${PWD}"
docker start "php71" ||
docker run \
--detach \
--interactive \
--mount "type=bind,src=${project_dir},dst=/data,readonly=true" \
--name="php71" \
--tty \
"php-curl-class/php71"