forked from wagtail/wagtail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.squash.yml
23 lines (23 loc) · 938 Bytes
/
.squash.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
deployments:
default:
dockerimage: python:latest
build_steps:
- apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl
- RUN bash -c "curl -sL https://deb.nodesource.com/setup_8.x | bash -"
- apt install -y nodejs
- pip install setuptools pip --upgrade --force-reinstall
- cd /code
post_build_steps:
- npm install --no-save
- npm run dist
- pip install /code
- mkdir /myproject
- cd /myproject
- wagtail start mysite
- cd /myproject/mysite
- python manage.py migrate
- echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', '[email protected]', 'changeme')" | python manage.py shell
launch_steps:
- cd /myproject/mysite
- python manage.py runserver 0.0.0.0:80
run_options: -v ~/code:/code