pull odoo addons in initcontainer
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
ae0d4df105
commit
3f74fb0b11
|
@ -16,6 +16,22 @@ spec:
|
|||
labels:
|
||||
app: odoo
|
||||
spec:
|
||||
initContainers:
|
||||
- name: git-cloner
|
||||
image: alpine/git
|
||||
args:
|
||||
- clone
|
||||
- --branch
|
||||
- "15.0"
|
||||
- --single-branch
|
||||
- --depth
|
||||
- "1"
|
||||
- --
|
||||
- https://git.tbrnt.ch/tobru/odoo-addons.git
|
||||
- /data
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: odoo-addons
|
||||
containers:
|
||||
- env:
|
||||
- name: HOST
|
||||
|
@ -57,9 +73,13 @@ spec:
|
|||
volumeMounts:
|
||||
- mountPath: /var/lib/odoo
|
||||
name: odoo-data
|
||||
- mountPath: /mnt/extra-addons
|
||||
name: odoo-addons
|
||||
hostname: web
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: odoo-data
|
||||
persistentVolumeClaim:
|
||||
claimName: odoo-data
|
||||
- name: odoo-addons
|
||||
emptyDir: {}
|
||||
|
|
Reference in New Issue