Add Nuxeo template

This commit is contained in:
Damien Metzler 2016-03-15 15:40:13 +01:00
parent 697e96122d
commit c85bb65ec4
5 changed files with 348 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Nuxeo
This templates deploys a Nuxeo server with all its companions (Elasticsearch, Redis and Postgres) to be able to run Nuxeo on top of you Rancher infrastructure
# How to use it ?
Just create and launch the stack. After that, you have to point a load balancer of you infrasctructure to the internal stack load balancer.
We made this choice, since it allows to start several Nuxeo server instance on the same infrastructure.
After that you can login with the regular user/password combination Administrator/Administrator.

View File

@ -0,0 +1,94 @@
postgres-datavolume:
labels:
io.rancher.container.start_once: 'true'
io.rancher.container.hostname_override: container_name
image: nuxeo/postgres
entrypoint: chown -R postgres:postgres /var/lib/postgresql/data
volume_driver: ${volumedriver}
volumes:
- nuxeo-postgres:/var/lib/postgresql/data
postgres:
image: nuxeo/postgres
environment:
- POSTGRES_USER=nuxeo
- POSTGRES_PASSWORD=nuxeo
labels:
io.rancher.sidekicks: postgres-datavolume
io.rancher.container.hostname_override: container_name
volumes_from:
- postgres-datavolume
# Copied from default Rancher ES Stack : don't modifiy service names
elasticsearch-masters:
image: rancher/elasticsearch-conf:v0.4.0
labels:
io.rancher.container.hostname_override: container_name
io.rancher.sidekicks: elasticsearch-base-master,elasticsearch-datavolume-masters
elasticsearch-datavolume-masters:
labels:
elasticsearch.datanode.config.version: '0'
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
entrypoint: /bin/true
image: elasticsearch:1.7.3
volume_driver: ${volumedriver}
elasticsearch-base-master:
labels:
elasticsearch.master.config.version: '0'
io.rancher.container.hostname_override: container_name
image: elasticsearch:1.7.3
net: "container:elasticsearch-masters"
volumes_from:
- elasticsearch-masters
- elasticsearch-datavolume-masters
entrypoint:
- /opt/rancher/bin/run.sh
redis:
labels:
io.rancher.container.hostname_override: container_name
tty: true
image: redis:3.0.3
stdin_open: true
nuxeo-datavolume:
labels:
io.rancher.container.start_once: 'true'
io.rancher.container.hostname_override: container_name
image: nuxeo
entrypoint: /bin/true
volume_driver: ${volumedriver}
volumes:
- /var/lib/nuxeo/data
- /var/log/nuxeo
nuxeo:
environment:
NUXEO_CLID: ${clid}
NUXEO_PACKAGES: ${packages}
NUXEO_DB_HOST: postgres
NUXEO_DB_TYPE: postgresql
NUXEO_ES_HOSTS: elasticsearch:9300
NUXEO_DATA: /data/nuxeo/data/
NUXEO_LOG: /data/nuxeo/log/
labels:
io.rancher.sidekicks: nuxeo-datavolume
io.rancher.container.hostname_override: container_name
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
image: nuxeo:FT
links:
- redis:redis
- postgres:postgres
- elasticsearch-masters:elasticsearch
volumes_from:
- nuxeo-datavolume
lb:
expose:
- 80:8080
image: rancher/load-balancer-service
links:
- nuxeo:nuxeo

View File

@ -0,0 +1,63 @@
.catalog:
name: "Nuxeo Platform"
version: "rancher-1.0"
description: |
Enterprise Content Management
Platform for Business Applications
uuid: nuxeo-1
questions:
- variable: clid
description: "A valid CLID to be able to download packages from Nuxeo Online Services. in the form part1\npart2"
label: "CLID"
type: "string"
required: false
default: ""
- variable: "packages"
type: "string"
label: "List of Nuxeo packages"
description: |
List of Nuxeo packages
default: nuxeo-web-mobile nuxeo-drive nuxeo-diff nuxeo-spreadsheet nuxeo-dam nuxeo-template-rendering nuxeo-template-rendering-samples nuxeo-showcase-content
- variable: "volumedriver"
type: "string"
label: "Volume driver"
description: |
Specifiy docker volume driver to use
default: local
nuxeo:
scale: 1
health_check:
port: 8080
# Interval is measured in milliseconds
interval: 5000
unhealthy_threshold: 5
# For TCP, request_line needs to be ''
# TCP Example:
# request_line: ''
request_line: GET /nuxeo/login.jsp
healthy_threshold: 2
# Response timeout is measured in milliseconds
response_timeout: 2000
elasticsearch:
metadata:
elasticsearch:
yml:
cluster.name: "${cluster_name}"
node.name: "$${HOSTNAME}"
node.data: "true"
node.master: "true"
lb:
scale: 1
load_balancer_config:
lb_cookie_stickiness_policy:
cookie: lbsticky
haproxy_config: {}
health_check:
port: 42
interval: 2000
unhealthy_threshold: 3
healthy_threshold: 2
response_timeout: 2000

View File

@ -0,0 +1,172 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 425.97333 425.98666"
height="425.98666"
width="425.97333"
xml:space="preserve"
id="svg2"
version="1.1"><metadata
id="metadata8"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
id="defs6"><clipPath
id="clipPath20"
clipPathUnits="userSpaceOnUse"><path
id="path18"
d="M 0,3194.89 V 0 h 3194.81 v 3194.89 z" /></clipPath></defs><g
transform="matrix(1.3333333,0,0,-1.3333333,0,425.98667)"
id="g10"><g
transform="scale(0.1)"
id="g12"><g
id="g14"><g
clip-path="url(#clipPath20)"
id="g16"><path
id="path22"
style="fill:#273d7e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,2396.12 H 798.738 L 399.492,2795.5 0,2396.12" /><path
id="path24"
style="fill:#18233c;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,3194.89 V 2396.12 L 398.508,2795.4 0,3194.89" /><path
id="path26"
style="fill:#22477c;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 798.738,3194.89 -398.55,-399.49 398.55,-399.28 v 798.77" /><path
id="path28"
style="fill:#212f54;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,3194.89 399.492,2795.5 798.738,3194.89 H 0" /><path
id="path30"
style="fill:#88d8e7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 1198.23,1996.76 798.738,1597.41 h 798.722 l -399.23,399.35" /><path
id="path32"
style="fill:#46a5cd;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1197.22,1996.63 -398.482,399.49 v -798.71 l 398.482,399.22" /><path
id="path34"
style="fill:#80d3f5;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1198.95,1996.63 398.51,399.49 v -798.71 l -398.51,399.22" /><path
id="path36"
style="fill:#47a5df;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 1198.23,1996.76 798.738,2396.12 H 1597.46 L 1198.23,1996.76" /><path
id="path38"
style="fill:#22477c;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2396.07,2396.12 h 798.74 L 2795.4,2795.5 2396.07,2396.12" /><path
id="path40"
style="fill:#212f54;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 3194.81,3194.84 -398.55,-399.44 398.55,-399.28 v 798.72" /><path
id="path42"
style="fill:#273d7e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2396.07,3194.87 v -798.75 l 398.61,399.28 -398.61,399.47" /><path
id="path44"
style="fill:#18233c;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2396.07,3194.87 399.33,-399.37 399.41,399.34 -798.74,0.03" /><path
id="path46"
style="fill:#80d3f5;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1996.66,1996.76 399.51,-399.35 h -798.71 l 399.2,399.35" /><path
id="path48"
style="fill:#46a5cd;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1997.62,1996.63 398.55,399.49 v -798.71 l -398.55,399.22" /><path
id="path50"
style="fill:#bce9f9;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1995.99,1996.63 -398.53,399.49 v -798.71 l 398.53,399.22" /><path
id="path52"
style="fill:#4baee6;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1996.66,1996.76 399.51,399.36 h -798.71 l 399.2,-399.36" /><path
id="path54"
style="fill:#22477c;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,798.738 399.492,399.379 798.738,798.738 H 0" /><path
id="path56"
style="fill:#212f54;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,0 398.508,399.512 0,798.738 V 0" /><path
id="path58"
style="fill:#273d7e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 400.188,399.512 798.738,0 V 798.738 L 400.188,399.512" /><path
id="path60"
style="fill:#18233c;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,0 H 798.738 L 399.492,399.379 0,0" /><path
id="path62"
style="fill:#a5e0e9;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1198.23,1198.11 -399.492,399.35 798.722,-0.05 -399.23,-399.3" /><path
id="path64"
style="fill:#46a5cd;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 1197.22,1198.25 798.738,798.738 v 798.722 l 398.482,-399.21" /><path
id="path66"
style="fill:#ccd6ee;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 1198.95,1198.25 1597.46,798.738 V 1597.41 L 1198.95,1198.25" /><path
id="path68"
style="fill:#71bae5;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 1198.23,1198.11 798.738,798.738 h 798.722 l -399.23,399.372" /><path
id="path70"
style="fill:#273d7e;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 2396.07,798.738 2795.4,399.379 3194.81,798.738 H 2396.07" /><path
id="path72"
style="fill:#18233c;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 2796.26,399.512 3194.81,0 V 798.738 L 2796.26,399.512" /><path
id="path74"
style="fill:#22477c;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2396.07,0 398.61,399.512 -398.61,399.226 V 0" /><path
id="path76"
style="fill:#212f54;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2396.07,0 h 798.74 L 2795.4,399.379 2396.07,0" /><path
id="path78"
style="fill:#a6e0f8;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1996.66,1198.11 399.51,399.3 h -798.71 l 399.2,-399.3" /><path
id="path80"
style="fill:#46a5cd;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 1997.62,1198.25 2396.17,798.738 V 1597.41 L 1997.62,1198.25" /><path
id="path82"
style="fill:#99d2f2;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 1995.99,1198.25 1597.46,798.738 v 798.672 l 398.53,-399.16" /><path
id="path84"
style="fill:#3172b7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1996.66,1198.11 399.51,-399.372 h -798.71 l 399.2,399.372" /><path
id="path86"
style="fill:#6098c0;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1197.94,2795.5 399.52,-399.38 H 798.738 l 399.202,399.38" /><path
id="path88"
style="fill:#3f46a2;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 798.738,3194.89 V 2396.12 L 1197.22,2795.4 798.738,3194.89" /><path
id="path90"
style="fill:#3152a7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 0,2396.12 399.492,-399.34 399.246,399.34 H 0" /><path
id="path92"
style="fill:#3172b7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 400.188,1996.93 398.55,-399.52 v 798.71 l -398.55,-399.19" /><path
id="path94"
style="fill:#3152a7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2795.49,1996.93 -399.32,-399.52 v 798.71 l 399.32,-399.19" /><path
id="path96"
style="fill:#3f46a2;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2396.07,2396.12 399.33,-398.52 399.41,398.52 h -798.74" /><path
id="path98"
style="fill:#3172b7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2396.07,3194.87 -399.22,-399.47 399.22,-399.28 v 798.75" /><path
id="path100"
style="fill:#46a5cd;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1996.89,2794.66 -399.43,-398.54 h 798.71 l -399.28,398.54" /><path
id="path102"
style="fill:#3172b7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 798.738,0.871094 1198.13,400.379 798.738,799.609 V 0.871094" /><path
id="path104"
style="fill:#46a5cd;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1197.94,401.148 399.52,398.461 H 798.738 L 1197.94,401.148" /><path
id="path106"
style="fill:#3152a7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 399.395,1197.97 399.343,399.44 V 798.738 L 399.395,1197.97" /><path
id="path108"
style="fill:#3f46a2;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 0,798.738 H 798.738 L 399.492,1197.25 0,798.738" /><path
id="path110"
style="fill:#3152a7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2396.07,799.609 h 798.74 L 2795.4,1198.93 2396.07,799.609" /><path
id="path112"
style="fill:#3172b7;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 2794.68,1198.83 -398.51,399.44 V 799.609 l 398.51,399.221" /><path
id="path114"
style="fill:#6098c0;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="m 1996.89,400.289 -399.43,399.32 h 798.71 l -399.28,-399.32" /><path
id="path116"
style="fill:#3f46a2;fill-opacity:1;fill-rule:nonzero;stroke:none"
d="M 1997.62,400.379 2396.17,0.871094 V 799.609 l -398.55,-399.23" /></g></g></g></g></svg>

After

Width:  |  Height:  |  Size: 9.8 KiB

View File

@ -0,0 +1,6 @@
name: Nuxeo Platform
description: |
Enterprise Content Management
Platform for Business Applications
version: 8.1
category: ECM