.squash.yml 945 B

1234567891011121314151617181920212223
  1. deployments:
  2. default:
  3. dockerimage: python:3.7.4-stretch
  4. build_steps:
  5. - apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl
  6. - RUN bash -c "curl -sL https://deb.nodesource.com/setup_8.x | bash -"
  7. - apt install -y nodejs
  8. - pip install setuptools pip --upgrade --force-reinstall
  9. - cd /code
  10. post_build_steps:
  11. - npm install --no-save
  12. - npm run dist
  13. - pip install /code
  14. - mkdir /myproject
  15. - cd /myproject
  16. - wagtail start mysite
  17. - cd /myproject/mysite
  18. - python manage.py migrate
  19. - echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'changeme')" | python manage.py shell
  20. launch_steps:
  21. - cd /myproject/mysite
  22. - python manage.py runserver 0.0.0.0:80
  23. run_options: -v ~/code:/code