2019-03-05 02:01:47 +01:00
|
|
|
deployments:
|
|
|
|
default:
|
2023-07-28 13:55:50 +02:00
|
|
|
dockerimage: python:3.11.4-slim-bullseye
|
2019-03-05 02:01:47 +01:00
|
|
|
build_steps:
|
2019-03-20 18:26:01 +01:00
|
|
|
- apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl
|
2022-09-06 11:27:35 +02:00
|
|
|
- RUN bash -c "curl -sL https://deb.nodesource.com/setup_18.x | bash -"
|
2019-03-20 18:26:01 +01:00
|
|
|
- apt install -y nodejs
|
2019-03-21 23:24:04 +01:00
|
|
|
- pip install setuptools pip --upgrade --force-reinstall
|
2019-03-20 18:26:01 +01:00
|
|
|
- cd /code
|
2021-09-17 18:22:44 +02:00
|
|
|
post_build_steps:
|
2022-07-15 16:36:03 +02:00
|
|
|
- npm ci --audit=false --progress=false
|
2021-12-23 05:21:23 +01:00
|
|
|
- npm run build
|
2023-07-28 13:55:50 +02:00
|
|
|
- git clone --depth=1 https://github.com/wagtail/bakerydemo.git /bakerydemo
|
|
|
|
# Install bakerydemo dependencies
|
|
|
|
- pip install -r /bakerydemo/requirements/base.txt
|
|
|
|
# Install the checked-out version of Wagtail, overriding whatever version was installed previously
|
2019-03-20 18:26:01 +01:00
|
|
|
- pip install /code
|
2023-07-28 13:55:50 +02:00
|
|
|
- cd /bakerydemo
|
2019-03-05 02:01:47 +01:00
|
|
|
- python manage.py migrate
|
2023-07-28 13:55:50 +02:00
|
|
|
# Load content, will also create a superuser for us (admin / changeme)
|
|
|
|
- python manage.py load_initial_data
|
|
|
|
# Ensure that the CSRF_TRUSTED_ORIGINS setting includes the Squash.io domain
|
|
|
|
- echo "CSRF_TRUSTED_ORIGINS = ['https://*.squash.io']" > /bakerydemo/bakerydemo/settings/local.py
|
2019-03-05 02:01:47 +01:00
|
|
|
launch_steps:
|
2023-07-28 13:55:50 +02:00
|
|
|
- cd /bakerydemo/
|
2019-03-21 23:24:04 +01:00
|
|
|
- python manage.py runserver 0.0.0.0:80
|
2021-09-17 18:22:44 +02:00
|
|
|
port_forwarding: 80:80
|
2019-03-21 23:24:04 +01:00
|
|
|
run_options: -v ~/code:/code
|