2
0

.squash.yml 1.3 KB

12345678910111213141516171819202122232425262728
  1. deployments:
  2. default:
  3. dockerimage: python:3.11.4-slim-bullseye
  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_20.x | bash -"
  7. - apt install -y nodejs
  8. - pip install setuptools pip --upgrade --force-reinstall
  9. - cd /code
  10. post_build_steps:
  11. - npm ci --audit=false --progress=false
  12. - npm run build
  13. - git clone --depth=1 https://github.com/wagtail/bakerydemo.git /bakerydemo
  14. # Install bakerydemo dependencies
  15. - pip install -r /bakerydemo/requirements/base.txt
  16. # Install the checked-out version of Wagtail, overriding whatever version was installed previously
  17. - pip install /code
  18. - cd /bakerydemo
  19. - python manage.py migrate
  20. # Load content, will also create a superuser for us (admin / changeme)
  21. - python manage.py load_initial_data
  22. # Ensure that the CSRF_TRUSTED_ORIGINS setting includes the Squash.io domain
  23. - echo "CSRF_TRUSTED_ORIGINS = ['https://*.squash.io']" > /bakerydemo/bakerydemo/settings/local.py
  24. launch_steps:
  25. - cd /bakerydemo/
  26. - python manage.py runserver 0.0.0.0:80
  27. port_forwarding: 80:80
  28. run_options: -v ~/code:/code