-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.shipmaster.yaml
More file actions
34 lines (32 loc) · 850 Bytes
/
Copy path.shipmaster.yaml
File metadata and controls
34 lines (32 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: osedev
layers:
base:
from: damoti/base:latest
apt-get:
- supervisor
context:
- requirements/base.pip
build:
- pip3 install -r requirements/base.pip
app:
context:
- .
build:
- cp conf/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
- cd /app/osedev/dart && pub get && pub build
- cd /app/osedev/static && npm install && gulp
- cd /app
- pip3 install --src=/src -r requirements/app.pip
- export DJANGO_SETTINGS_MODULE=osedev.settings.common
- python3 manage.py collectstatic --noinput
prepare: fab prepare:service={service},branch={git-branch}
start: /usr/bin/supervisord
wait-for: db:5432
test:
build:
- pip3 install -r requirements/test.pip
start: fab test
wait-for: db:5432
build:
branches:
- master