diff --git a/templates/plone/0/README.md b/templates/plone/0/README.md index cc52f98..c37eff3 100644 --- a/templates/plone/0/README.md +++ b/templates/plone/0/README.md @@ -1,11 +1,12 @@ -# Plone +# Plone 4.3 -This templates deploys a Plone server with all its companions (Zeoserver) to be able to run Plone on top of you Rancher infrastructure - +This templates deploys a Plone 4.3 server with all its companions (Zeoserver) to be able to run Plone on top of you Rancher infrastructure. # How to use it ? Just create and launch the stack. After that you can login with the regular user/password combination admin/admin. + +For more information on how to configure and use Plone visit [Plone 4 documentation site](http://docs.plone.org/4/en/). \ No newline at end of file diff --git a/templates/plone/0/docker-compose.yml b/templates/plone/0/docker-compose.yml index 1ddd708..19ec340 100644 --- a/templates/plone/0/docker-compose.yml +++ b/templates/plone/0/docker-compose.yml @@ -1,5 +1,5 @@ zeoserver: - image: plone:${version} + image: plone:4.3 labels: io.rancher.scheduler.affinity:host_label: ${host_label} io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.community.plone=true @@ -10,7 +10,7 @@ zeoserver: command: ["zeoserver"] plone: - image: plone:${version} + image: plone:4.3 labels: io.rancher.scheduler.affinity:host_label: ${host_label} io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.community.plone=true diff --git a/templates/plone/0/rancher-compose.yml b/templates/plone/0/rancher-compose.yml index 9c06d5b..59f3d91 100644 --- a/templates/plone/0/rancher-compose.yml +++ b/templates/plone/0/rancher-compose.yml @@ -1,19 +1,10 @@ .catalog: name: "Plone" - version: "5.0-rancher1" + version: "4.3-rancher1" description: | Plone CMS uuid: plone-1 questions: - - variable: "version" - label: "Plone version" - description: "Select Plone version to run" - required: true - type: "enum" - options: - - 5.0 - - 4.3 - default: 5.0 - variable: "addons" type: "string" label: "Plone add-ons" diff --git a/templates/plone/1/README.md b/templates/plone/1/README.md new file mode 100644 index 0000000..d972fba --- /dev/null +++ b/templates/plone/1/README.md @@ -0,0 +1,12 @@ +# Plone 5.0 + + +This templates deploys a Plone 5.0 server with all its companions (Zeoserver) to be able to run Plone on top of you Rancher infrastructure. + +# How to use it ? + +Just create and launch the stack. + +After that you can login with the regular user/password combination admin/admin. + +For more information on how to configure and use Plone visit [the official Plone 5 documentation site](http://docs.plone.org/5/en/). \ No newline at end of file diff --git a/templates/plone/1/docker-compose.yml b/templates/plone/1/docker-compose.yml new file mode 100644 index 0000000..4fb1839 --- /dev/null +++ b/templates/plone/1/docker-compose.yml @@ -0,0 +1,33 @@ +zeoserver: + image: plone:5.0 + labels: + io.rancher.scheduler.affinity:host_label: ${host_label} + io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.community.plone=true + io.rancher.community.plone: "true" + volumes: + - ${volume_name}:/data + volume_driver: ${volume_driver} + command: ["zeoserver"] + +plone: + image: plone:5.0 + labels: + io.rancher.scheduler.affinity:host_label: ${host_label} + io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.community.plone=true + io.rancher.community.plone: "true" + links: + - zeoserver:zeoserver + environment: + ADDONS: ${addons} + ZEO_ADDRESS: zeoserver:8100 + +lb: + image: rancher/load-balancer-service + labels: + io.rancher.scheduler.affinity:host_label: ${host_label} + io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.community.plone=true + io.rancher.community.plone: "true" + links: + - plone:plone + ports: + - ${http_port}:8080 diff --git a/templates/plone/1/rancher-compose.yml b/templates/plone/1/rancher-compose.yml new file mode 100644 index 0000000..791957f --- /dev/null +++ b/templates/plone/1/rancher-compose.yml @@ -0,0 +1,74 @@ +.catalog: + name: "Plone" + version: "5.0-rancher1" + description: | + Plone CMS + uuid: plone-1 + questions: + - variable: "addons" + type: "string" + label: "Plone add-ons" + description: | + List of Plone Add-ons space separated + default: "" + - variable: "http_port" + type: "int" + label: "Port" + description: | + Plone HTTP public port to listen. + default: 8080 + required: true + - variable: "host_label" + description: "Host label where to run Plone service." + label: "Host label:" + default: "plone=true" + type: "string" + - variable: "scale" + type: "int" + label: "Scale" + description: | + How many Plone instances to create + default: 2 + required: true + - variable: volume_name + type: "string" + label: "Volume name" + description: | + Specifiy volume name for Plone data (filestorage, blobstorage) + default: plone-data + - variable: volume_driver + type: "string" + label: "Volume driver" + description: | + Specifiy docker volume driver to use + default: local + +plone: + scale: ${scale} + health_check: + port: 8080 + interval: 5000 + unhealthy_threshold: 3 + healthy_threshold: 2 + response_timeout: 2000 + request_line: GET / + +zeoserver: + scale: 1 + health_check: + port: 8100 + interval: 5000 + unhealthy_threshold: 3 + healthy_threshold: 2 + response_timeout: 2000 + +lb: + scale: 1 + load_balancer_config: + haproxy_config: {} + health_check: + port: 42 + interval: 2000 + unhealthy_threshold: 3 + healthy_threshold: 2 + response_timeout: 2000