2
0

.squash.yml 1.1 KB

123456789101112131415161718192021222324
  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_10.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 --no-audit --progress=false
  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 "<br><h1>Wagtail test instance</h1><p>Log into <a href='/admin/'>/admin/</a> with 'admin' / 'changeme'.</p>" > home/templates/home/welcome_page.html
  20. - 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
  21. launch_steps:
  22. - cd /myproject/mysite
  23. - python manage.py runserver 0.0.0.0:80
  24. run_options: -v ~/code:/code