Commit c8e18973 by Ivan

Cloud selector para Odoo12

parent 41758033
...@@ -24,6 +24,7 @@ services: ...@@ -24,6 +24,7 @@ services:
- /bin/true - /bin/true
labels: labels:
io.rancher.container.start_once: 'true' io.rancher.container.start_once: 'true'
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
db: db:
image: postgres:10 image: postgres:10
environment: environment:
...@@ -36,6 +37,7 @@ services: ...@@ -36,6 +37,7 @@ services:
- db-data - db-data
labels: labels:
io.rancher.sidekicks: db-data io.rancher.sidekicks: db-data
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
volume-clener: volume-clener:
image: dvalue/odoo-data:latest image: dvalue/odoo-data:latest
...@@ -52,6 +54,7 @@ services: ...@@ -52,6 +54,7 @@ services:
labels: labels:
io.rancher.container.start_once: 'true' io.rancher.container.start_once: 'true'
io.rancher.container.pull_image: 'always' io.rancher.container.pull_image: 'always'
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
web: web:
image: odoo:12.0 image: odoo:12.0
...@@ -75,6 +78,7 @@ services: ...@@ -75,6 +78,7 @@ services:
labels: labels:
io.rancher.sidekicks: script io.rancher.sidekicks: script
io.rancher.container.pull_image: 'always' io.rancher.container.pull_image: 'always'
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
script: script:
image: dvalue/odoo-script:v12 image: dvalue/odoo-script:v12
environment: environment:
...@@ -91,6 +95,7 @@ services: ...@@ -91,6 +95,7 @@ services:
labels: labels:
io.rancher.container.start_once: 'true' io.rancher.container.start_once: 'true'
io.rancher.container.pull_image: 'always' io.rancher.container.pull_image: 'always'
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
sftp: sftp:
image: atmoz/sftp:alpine image: atmoz/sftp:alpine
...@@ -101,3 +106,5 @@ services: ...@@ -101,3 +106,5 @@ services:
- odoo:${sftp_pass}:101:0:upload - odoo:${sftp_pass}:101:0:upload
depends_on: depends_on:
- web - web
labels:
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
...@@ -14,6 +14,14 @@ ...@@ -14,6 +14,14 @@
label: PYTHON_MODULES label: PYTHON_MODULES
required: false required: false
type: string type: string
- variable: HOSTTYPE
description: donde crear el servicio(DV,gcloud)
label: HOSTTYPE
required: false
type: enum
options:
- DV
- gcloud
odoo: odoo:
version: '2' version: '2'
......
...@@ -24,6 +24,7 @@ services: ...@@ -24,6 +24,7 @@ services:
- /bin/true - /bin/true
labels: labels:
io.rancher.container.start_once: 'true' io.rancher.container.start_once: 'true'
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
db: db:
image: postgres:10 image: postgres:10
environment: environment:
...@@ -36,6 +37,7 @@ services: ...@@ -36,6 +37,7 @@ services:
- db-data - db-data
labels: labels:
io.rancher.sidekicks: db-data io.rancher.sidekicks: db-data
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
volume-clener: volume-clener:
image: dvalue/odoo-data:latest image: dvalue/odoo-data:latest
...@@ -52,6 +54,7 @@ services: ...@@ -52,6 +54,7 @@ services:
labels: labels:
io.rancher.container.start_once: 'true' io.rancher.container.start_once: 'true'
io.rancher.container.pull_image: 'always' io.rancher.container.pull_image: 'always'
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
web: web:
image: odoo:12.0 image: odoo:12.0
...@@ -75,6 +78,7 @@ services: ...@@ -75,6 +78,7 @@ services:
labels: labels:
io.rancher.sidekicks: script io.rancher.sidekicks: script
io.rancher.container.pull_image: 'always' io.rancher.container.pull_image: 'always'
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
script: script:
image: dvalue/odoo-script:v12 image: dvalue/odoo-script:v12
environment: environment:
...@@ -91,6 +95,7 @@ services: ...@@ -91,6 +95,7 @@ services:
labels: labels:
io.rancher.container.start_once: 'true' io.rancher.container.start_once: 'true'
io.rancher.container.pull_image: 'always' io.rancher.container.pull_image: 'always'
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
sftp: sftp:
image: atmoz/sftp:alpine image: atmoz/sftp:alpine
...@@ -101,3 +106,5 @@ services: ...@@ -101,3 +106,5 @@ services:
- odoo:${sftp_pass}:101:0:upload - odoo:${sftp_pass}:101:0:upload
depends_on: depends_on:
- web - web
labels:
io.rancher.scheduler.affinity:host_label: hosttype=${HOSTTYPE}
...@@ -14,6 +14,14 @@ ...@@ -14,6 +14,14 @@
label: PYTHON_MODULES label: PYTHON_MODULES
required: false required: false
type: string type: string
- variable: HOSTTYPE
description: donde crear el servicio(DV,gcloud)
label: HOSTTYPE
required: false
type: enum
options:
- DV
- gcloud
odoo: odoo:
version: '2' version: '2'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment