-
Notifications
You must be signed in to change notification settings - Fork 0
/
zerops.yml
45 lines (44 loc) · 1.5 KB
/
zerops.yml
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
35
36
37
38
39
40
41
42
43
44
45
zerops:
- setup: odoo
build:
os: ubuntu
base: [email protected]
envVariables:
DEBIAN_FRONTEND: noninteractive
prepareCommands:
- apt-get update
- apt-get install -y python3-pip libldap2-dev libpq-dev libsasl2-dev wkhtmltopdf
buildCommands:
- (mv init.sh /tmp/ && rm -rf * .[!.]* || true)
- git clone --depth=1 --branch 18.0 --single-branch https://github.com/odoo/odoo.git .
- mv /tmp/init.sh ./
- python3 -m pip install --target ./vendor -r requirements.txt
deployFiles:
- init.sh
- addons
- odoo
- odoo-bin
- vendor
run:
os: ubuntu
base: [email protected]
envVariables:
DB_HOST: ${db_hostname}
DB_PORT: ${db_port}
DB_USER: ${db_superUser}
DB_PASSWORD: ${db_superUserPassword}
PYTHONPATH: /var/www/vendor:/var/www
DEBIAN_FRONTEND: noninteractive
prepareCommands:
- apt-get update
- apt-get install -y --no-install-recommends python3-pip libldap2-dev libpq-dev libsasl2-dev wkhtmltopdf postgresql-client
- apt-get clean
- rm -rf /var/lib/apt/lists/*
initCommands:
- zsc execOnce INIT -- sh init.sh
start: exec python3 odoo-bin --workers=4 --max-cron-threads=2 --db_host=$DB_HOST --db_port=$DB_PORT --db_user=$DB_ODOO_USER --db_password=$DB_ODOO_PASSWORD
ports:
- port: 8069
httpSupport: true
- port: 8072
httpSupport: true