download 462 B

12345678910111213141516
  1. #!/bin/bash
  2. VERSION=${1:-2.4.3-p1}
  3. EDITION=${2:-community}
  4. bin/stop
  5. docker-compose -f docker-compose.yml up -d
  6. [ $? != 0 ] && echo "Failed to start Docker services" && exit
  7. bin/setup-composer-auth
  8. bin/clinotty composer create-project --repository=https://repo.magento.com/ magento/project-"${EDITION}"-edition="${VERSION}" .
  9. # Ensure these are created so Docker doesn't create them as root
  10. mkdir -p ~/.composer ~/.ssh
  11. touch ~/.ssh/id_rsa ~/.ssh/known_hosts