From 94290f426c248cdccc5297de67460d38a136e38d Mon Sep 17 00:00:00 2001 From: Sebastien Langoureaux Date: Tue, 8 Mar 2016 10:00:44 +0100 Subject: [PATCH] Add Alfresco template --- templates/alfresco/0/README.md | 33 +++++++++++++++ templates/alfresco/0/docker-compose.yml | 24 +++++++++++ templates/alfresco/0/rancher-compose.yml | 45 +++++++++++++++++++++ templates/alfresco/catalogIcon-alfresco.svg | 21 ++++++++++ templates/alfresco/config.yml | 5 +++ 5 files changed, 128 insertions(+) create mode 100644 templates/alfresco/0/README.md create mode 100644 templates/alfresco/0/docker-compose.yml create mode 100644 templates/alfresco/0/rancher-compose.yml create mode 100644 templates/alfresco/catalogIcon-alfresco.svg create mode 100644 templates/alfresco/config.yml diff --git a/templates/alfresco/0/README.md b/templates/alfresco/0/README.md new file mode 100644 index 0000000..0a9862e --- /dev/null +++ b/templates/alfresco/0/README.md @@ -0,0 +1,33 @@ +# Alfresco + +### Note: + +If you can read French, you can look my [blog](https://blog.webcenter.fr) to look how to upgrade container after deployement for a production usage. + +### Info: + +This template deploys a collection of containers based upon the technologies below, once deployed you should have a + Electronic Document Management (EDM) plateform based on Alfresco. +* **Alfresco** - Used to manage all aspect of EDM. (https://github.com/disaster37/rancher-alfresco) +* **Postgresql** - It's the SGBD to store metadatas of your EDM. (https://github.com/docker-library/postgres) + +This template is just a base to test Alfresco. If you should use in production sky, You must upgrade it after install to setting it in your context (see all parameters you can use to set Alfresco on github). You must at minimal setting that : +* **Volume** : You must mount a database volume and alfresco volume on storage pool (convoy-gluster is a good idea). + * For Postgresql `/var/lib/postgresql/data/pgdata` + * For Alfresco `/opt/alfresco/alf_data` +* **Reverse Proxy / Load balancer** : You probably put load balancer like a endpoint for user. To do that, you must add extra parameter on your Alfresco container. + * **REVERSE_PROXY_URL** : put your url like `https://ged.my-domain.com` +* **Mail setting** : There are a lot of parameter to set mail context. +* **CIFS setting** : There are a lot of parameter to set CIFS context. +* **LDAP authentification** : There are a lot of parameter to set LDAP authentification + +All components in this stack are open source tools available in the community. All this template does is to bound them together in an easy to use package. + + + +## Deployment: +* Select Alfresco from the community catalog. +* Click deploy. + +## Usage +* Alfresco Share is now available on port 8080 with the following url `http://your_ip:8080/share`. Authentication is with the default `admin/admin`. diff --git a/templates/alfresco/0/docker-compose.yml b/templates/alfresco/0/docker-compose.yml new file mode 100644 index 0000000..b9c580c --- /dev/null +++ b/templates/alfresco/0/docker-compose.yml @@ -0,0 +1,24 @@ +alfresco: + environment: + CIFS_ENABLED: 'false' + FTP_ENABLED: 'false' + labels: + io.rancher.container.pull_image: always' + tty: true + image: webcenter/rancher-alfresco:v5.1.0-2 + links: + - postgres:db + stdin_open: true + ports: + - 8080:8080/tcp +postgres: + environment: + PGDATA: /var/lib/postgresql/data/pgdata + POSTGRES_DB: ${database_name} + POSTGRES_PASSWORD: ${database_password} + POSTGRES_USER: ${database_user} + labels: + io.rancher.container.pull_image: always + tty: true + image: postgres:9.4 + stdin_open: true diff --git a/templates/alfresco/0/rancher-compose.yml b/templates/alfresco/0/rancher-compose.yml new file mode 100644 index 0000000..7e1186a --- /dev/null +++ b/templates/alfresco/0/rancher-compose.yml @@ -0,0 +1,45 @@ +.catalog: + name: "Alfresco" + version: "5.1.0" + description: "Alfresco Electronic Document Management" + uuid: alfresco-5.1.0-2 + minimum_rancher_version: v0.56.0 + questions: + - variable: database_name + description: "Name of the Alfresco database" + label: "Database name" + type: "string" + required: true + default: "alfresco" + - variable: database_user + description: "Login for the Alfresco database" + label: "Database login" + type: "string" + required: true + default: "alfresco" + - variable: database_password + description: "Password for the Alfresco database" + label: "Database password" + type: "string" + required: true + default: "alfresco" + +alfresco: + scale: 1 + health_check: + port: 8080 + interval: 5000 + unhealthy_threshold: 3 + strategy: recreate + healthy_threshold: 2 + response_timeout: 5000 + +postgres: + scale: 1 + health_check: + port: 5432 + interval: 5000 + unhealthy_threshold: 3 + strategy: recreate + response_timeout: 5000 + healthy_threshold: 2 diff --git a/templates/alfresco/catalogIcon-alfresco.svg b/templates/alfresco/catalogIcon-alfresco.svg new file mode 100644 index 0000000..278bd66 --- /dev/null +++ b/templates/alfresco/catalogIcon-alfresco.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/alfresco/config.yml b/templates/alfresco/config.yml new file mode 100644 index 0000000..4750406 --- /dev/null +++ b/templates/alfresco/config.yml @@ -0,0 +1,5 @@ +name: Alfresco +description: | + Slef hosted your EDM with Alfresco on few seconds. +version: 5.1.0 +category: EDM