You are here

build-test.sh in Realistic Dummy Content 8

# Make sure errors propagate throughout the script
set -e

echo -e "[  >>] Start of script $0 (from $(pwd))"

if [ ! -f ./Dcycle-Dockerfile-drupal8module-test ];then
  echo -e "[error] Dcycle-Dockerfile-drupal8module-test must exist. Because the contents"
  echo -e "        of this file differs from project to project, you must explicitly copy"
  echo -e "        it to from ./examples/ to your project root, and modify it."
  exit 1;
fi


PORT=$1
PROJECTNAME=$2

docker build -f="Dcycle-Dockerfile-drupal8module-test" -t $PROJECTNAME-dcycle-drupal8module-test .
docker run -d -p $PORT:80 $PROJECTNAME-dcycle-drupal8module-test

echo -e "[<<  ] End of script $0"

File

dcycle/lib/build-test.sh
View source
  1. # Make sure errors propagate throughout the script
  2. set -e
  3. echo -e "[ >>] Start of script $0 (from $(pwd))"
  4. if [ ! -f ./Dcycle-Dockerfile-drupal8module-test ];then
  5. echo -e "[error] Dcycle-Dockerfile-drupal8module-test must exist. Because the contents"
  6. echo -e " of this file differs from project to project, you must explicitly copy"
  7. echo -e " it to from ./examples/ to your project root, and modify it."
  8. exit 1;
  9. fi
  10. PORT=$1
  11. PROJECTNAME=$2
  12. docker build -f="Dcycle-Dockerfile-drupal8module-test" -t $PROJECTNAME-dcycle-drupal8module-test .
  13. docker run -d -p $PORT:80 $PROJECTNAME-dcycle-drupal8module-test
  14. echo -e "[<< ] End of script $0"