test.sh 566 B

123456789101112131415161718
  1. #! /usr/bin/env sh
  2. # Exit in case of error
  3. set -e
  4. DOMAIN=backend \
  5. SMTP_HOST="" \
  6. TRAEFIK_PUBLIC_NETWORK_IS_EXTERNAL=false \
  7. INSTALL_DEV=true \
  8. docker-compose \
  9. -f docker-compose.yml \
  10. config > docker-stack.yml
  11. docker-compose -f docker-stack.yml build
  12. docker-compose -f docker-stack.yml down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
  13. docker-compose -f docker-stack.yml up -d
  14. docker-compose -f docker-stack.yml exec -T backend bash /app/tests-start.sh "$@"
  15. docker-compose -f docker-stack.yml down -v --remove-orphans