Commit graph

48 commits

Author SHA1 Message Date
Stéphane Bidoul
a349f4b7a0 Fix typo in initialize job name 2022-05-30 14:54:50 +02:00
Stéphane Bidoul
26a7d59681
Add comment 2022-03-13 11:41:24 +01:00
Stéphane Bidoul
bc06e08b5f
use cp instead of rsync to preserve odoo-venv
Rsync is not present in the oca/oca-ci image and installing
it sometimes failed due to outdated deb package information.
2022-03-13 11:40:18 +01:00
Stéphane Bidoul
2eaf4bde66
Add ADDONS_DIR to ADDONS_PATH 2022-02-26 16:32:17 +01:00
Stéphane Bidoul
7cb0b3fce1
Merge pull request #45 from sbidoul/download-instead-of-clone
Download github commit instead of cloning
2022-02-18 18:54:20 +01:00
Stéphane Bidoul
76cc48fbf6
Revert memory limit increase
We don't need it since we improved the git dowload.
2022-02-18 18:54:05 +01:00
Stéphane Bidoul
3024085b53
Download github commit instead of cloning
Because the git clone+fetch is slower and uses a lot of RAM.
2022-02-18 18:52:57 +01:00
Stéphane Bidoul
abc361720d
Fix previous commit 2022-02-18 17:50:07 +01:00
Stéphane Bidoul
70f7c57a09
Increase memory limit of the initialization jobs.
This is necessary because the git fetch command of large repos such
as oca/ocb seem to consume a lot of memory.
2022-02-18 17:42:11 +01:00
Stéphane Bidoul
c3e84d1256
Add env vars in build settings + alt install method 2022-01-29 11:59:47 +01:00
Stéphane Bidoul
115d292c9f
Don't redirect /longpolling to 8072
We deploy in multi-threaded mode, so there
is nothing on port 8072.
2022-01-26 17:36:24 +01:00
Stéphane Bidoul
3424f418b0
Reapply fix about using template1 database
It got lost, somehow...
2022-01-04 16:44:47 +01:00
Stéphane Bidoul
8ac3486d51
Do not set service link env variables
Kubernetes set environment variables in pods to help with service
discovery. This is a problem when we have thousands of builds.
And we don't need them (since there is no service communication,
and we have DNS in the cluster anyway).
2021-12-29 14:47:23 +01:00
Stéphane Bidoul
c383c3c31d
Improve readability of initialize and start scripts 2021-12-20 23:03:03 +01:00
Stéphane Bidoul
3b3a6f4ea9
Use template1 db
Odoo uses template0 by default but the postgres
docs says it must not be modified.
2021-12-20 23:01:45 +01:00
Stéphane Bidoul
f720cbcac5
Be more explicit about job completions 2021-11-28 13:21:42 +01:00
Stéphane Bidoul
3ee55d8737
Tweak comments 2021-11-26 18:15:59 +01:00
Alexandre Fayolle
597f6b0eb8 [FIX] debian package dependencies not available
the Debian package dependencies where only installed during the
initialization phase, not the deployement -> install them
at that point.

closes: #23
2021-11-26 15:36:45 +01:00
Alexandre Fayolle
b592ecb327 [IMP] speed up start of container
we rsync the virtual env of odoo to a volume at the end of the init
phase. Rather than rsync'ing back, mount the volume on top of the
odoo venv from the base docker image.
2021-11-26 15:28:32 +01:00
Stéphane Bidoul
73866fe377
Missing backslash 2021-11-24 19:33:44 +01:00
Stéphane Bidoul
8b31beed55
--db-filter is necessary for Odoo 10 too, it seems 2021-11-24 19:32:35 +01:00
Stéphane Bidoul
9e1a21f409
Fix startup script for Odoo<=10 2021-11-24 19:05:01 +01:00
Stéphane Bidoul
180ecc6f8d
Refactor passing around git commit info 2021-11-21 17:57:11 +01:00
Stéphane Bidoul
301fec8860
Reduce termination grace period 2021-11-21 12:30:26 +01:00
Stéphane Bidoul
40d83bb1f7
Use port number for livenessProbe 2021-11-20 15:35:11 +01:00
Stéphane Bidoul
6b53a2407f
Add readiness and liveliness probes 2021-11-20 15:34:21 +01:00
Stéphane Bidoul
ea6b37a0eb
Remove addons dir before clone
So we can re-trigger after a failed installation.
2021-11-20 15:07:05 +01:00
Stéphane Bidoul
1bd45aa7b0
Fix addons directory location
It was mixed with the odoo data dir.
2021-11-20 15:06:34 +01:00
Stéphane Bidoul
442b4e437d
Do not hard kill deployments
To leave them a change to close postgres connections.
2021-11-16 21:33:47 +01:00
Stéphane Bidoul
7b6ce4f1bd
Preserve odoo-venv for faster startup 2021-11-12 00:21:43 +01:00
Stéphane Bidoul
36f37639b0
Quiet git clone 2021-11-11 19:42:26 +01:00
Stéphane Bidoul
8a4797bf02
Build log endpoints 2021-11-11 19:30:39 +01:00
Stéphane Bidoul
d8fff09ed1
Cleaner way to disable database manager 2021-11-09 22:34:42 +01:00
Stéphane Bidoul
801790ed05
Make filestore storage class configurable
Also, use kustomize patches instead of vars.
2021-11-09 20:03:37 +01:00
Stéphane Bidoul
db51e28dbd
Use a PVC for the Odoo filestore 2021-11-09 20:03:37 +01:00
Stéphane Bidoul
f012651501
Add test for render_kubefiles 2021-11-07 12:02:36 +01:00
Stéphane Bidoul
24d9be3b0c
Runboat does not need to know about postgres at all 2021-11-06 15:37:36 +01:00
Stéphane Bidoul
43e0e5f0d1
Remove unused ADMIN_PASSWD env var 2021-11-06 15:07:02 +01:00
Stéphane Bidoul
61ec2f06a0
Better docs leads to better code 2021-11-06 12:17:42 +01:00
Stéphane Bidoul
968f94c1e7
Allow customizing build environment variables 2021-11-05 18:23:02 +01:00
Stéphane Bidoul
56a57de966
Add timeout on initialization job 2021-11-05 10:21:38 +01:00
Stéphane Bidoul
1f52025f97
Use finalizers to track cleanup 2021-11-04 09:37:40 +01:00
Stéphane Bidoul
f5d232c3af
More precise change detection
Fix: we read spec.replicas instead of status.replicas.
Do not wakeup needlessly when irrelevant changes
happen in deployments.
Better logging.
2021-10-31 16:21:36 +01:00
Stéphane Bidoul
d6d9ac8a7f
Use jobs for db initialization an cleanup
It turns out that init containers do not work, as we
can't easily detect failures and access init log as they
restart constantly. So we use initialization jobs.
We take the opportunity to use cleanup jobs too, so
all knowledge of runtime content is in the kubefiles.
2021-10-31 11:04:51 +01:00
Stéphane Bidoul
1f137bbdc8
Do not create new deployment if build already exist 2021-10-29 00:32:15 +02:00
Stéphane Bidoul
e33ad90745
It's taking shape 2021-10-28 12:52:23 +02:00
Stéphane Bidoul
6bd0c8e7cd
Look ma, no database 2021-10-25 19:08:18 +02:00
Stéphane Bidoul
ac0bd848d4
Initial commit 2021-10-17 15:19:34 +02:00