2019-03-05 01:01:47 +00:00
|
|
|
deployments:
|
|
|
|
default:
|
|
|
|
dockerimage: python:latest
|
|
|
|
build_steps:
|
2019-03-20 17:26:01 +00:00
|
|
|
- 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
|
2019-03-21 22:24:04 +00:00
|
|
|
- pip install setuptools pip --upgrade --force-reinstall
|
2019-03-20 17:26:01 +00:00
|
|
|
- cd /code
|
2019-03-21 22:24:04 +00:00
|
|
|
post_build_steps:
|
2019-03-21 22:37:36 +00:00
|
|
|
- npm install --no-save
|
2019-03-20 17:26:01 +00:00
|
|
|
- npm run dist
|
|
|
|
- pip install /code
|
2019-03-05 01:01:47 +00:00
|
|
|
- mkdir /myproject
|
|
|
|
- cd /myproject
|
|
|
|
- wagtail start mysite
|
|
|
|
- cd /myproject/mysite
|
|
|
|
- python manage.py migrate
|
2019-03-21 22:24:04 +00:00
|
|
|
- echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@myproject.com', 'password')" | python manage.py shell
|
2019-03-05 01:01:47 +00:00
|
|
|
launch_steps:
|
2019-03-21 22:24:04 +00:00
|
|
|
- cd /myproject/mysite
|
|
|
|
- python manage.py runserver 0.0.0.0:80
|
|
|
|
run_options: -v ~/code:/code
|