diff --git a/templates/liferay/0/README.md b/templates/liferay/0/README.md new file mode 100644 index 0000000..76951ba --- /dev/null +++ b/templates/liferay/0/README.md @@ -0,0 +1,22 @@ +# Liferay Portal Community Edition 6.2 + +Installs Liferay Portal, an open source enterprise portal. Uses MySQL as database. + +### First Start + +Use the following credentials to log in as the default administrative user: +* user name: **test@liferay.com** +* password: **test** + +If you choose to run the Setup Wizard at first start, you can create a different +administrative user. + +### Watch the Logs + +Open a terminal via `Execute Shell` on the Liferay container, then use `tail` +on the log files in `/opt/liferay/tomcat/logs` and `/opt/liferay/logs`, e.g. + +```bash +tail -f /opt/liferay/tomcat/logs/catalina.2016-04-13.log +tail -f /opt/liferay/logs/liferay.2016-04-13.log +``` \ No newline at end of file diff --git a/templates/liferay/0/docker-compose.yml b/templates/liferay/0/docker-compose.yml new file mode 100644 index 0000000..33dd511 --- /dev/null +++ b/templates/liferay/0/docker-compose.yml @@ -0,0 +1,34 @@ +liferay: + ports: + - 8080:8080/tcp + environment: + SETUP_WIZARD_ENABLED: ${SETUP_WIZARD_ENABLED} + DB_KIND: mysql + DB_HOST: liferaydb + DB_USERNAME: ${MYSQL_USER} + DB_PASSWORD: ${MYSQL_PASSWORD} + log_driver: '' + labels: + io.rancher.container.pull_image: always + tty: true + log_opt: {} + image: rsippl/liferay:6.2.5-1 + links: + - mysql:liferaydb + stdin_open: true +mysql: + environment: + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + MYSQL_DATABASE: ${MYSQL_DATABASE} + MYSQL_USER: ${MYSQL_USER} + MYSQL_PASSWORD: ${MYSQL_PASSWORD} + log_driver: '' + labels: + io.rancher.container.pull_image: always + tty: true + command: + - --character-set-server=utf8 + - --collation-server=utf8_general_ci + log_opt: {} + image: mysql:5.6.30 + stdin_open: true diff --git a/templates/liferay/0/rancher-compose.yml b/templates/liferay/0/rancher-compose.yml new file mode 100644 index 0000000..3f74dd2 --- /dev/null +++ b/templates/liferay/0/rancher-compose.yml @@ -0,0 +1,56 @@ +.catalog: + name: "Liferay" + version: "6.2.5-1" + description: "Liferay Portal Community Edition" + uuid: liferay-6.2.5-1 + minimum_rancher_version: v1.0.0 + questions: + - variable: SETUP_WIZARD_ENABLED + label: "Enable setup wizard" + description: "Enable this option if the Setup Wizard should be displayed the first time the portal is started." + required: true + type: "boolean" + default: false + - variable: MYSQL_DATABASE + description: "Name of the database" + label: "Database name" + type: "string" + required: true + default: "lportal" + - variable: MYSQL_USER + description: "Login name for the database user" + label: "Database login name" + type: "string" + required: true + default: "liferay" + - variable: MYSQL_PASSWORD + description: "Password for the database user" + label: "Database password" + type: "string" + required: true + default: "secret" + - variable: MYSQL_ROOT_PASSWORD + description: "Password for the database root user" + label: "Database root password" + type: "string" + required: true + default: "secret" + +liferay: + scale: 1 + health_check: + port: 8080 + interval: 2000 + unhealthy_threshold: 3 + request_line: GET / HTTP/1.0 + healthy_threshold: 2 + response_timeout: 2000 + +mysql: + scale: 1 + health_check: + port: 3306 + interval: 2000 + unhealthy_threshold: 3 + response_timeout: 2000 + healthy_threshold: 2 \ No newline at end of file diff --git a/templates/liferay/1/README.md b/templates/liferay/1/README.md new file mode 100644 index 0000000..622af02 --- /dev/null +++ b/templates/liferay/1/README.md @@ -0,0 +1,26 @@ +# Liferay Portal Community Edition 7.0 + +Installs Liferay Portal, an open source enterprise portal. Uses MySQL as database. + +### Requirements + +Make sure the Liferay container is started on a host with at least 4 GB RAM. + +### First Start + +Use the following credentials to log in as the default administrative user: +* user name: **test@liferay.com** +* password: **test** + +If you choose to run the Setup Wizard at first start, you can create a different +administrative user. Afterwards you may have to restart the Liferay container. + +### Watch the Logs + +Open a terminal via `Execute Shell` on the Liferay container, then use `tail` +on the log files in `/opt/liferay/tomcat/logs` and `/opt/liferay/logs`, e.g. + +```bash +tail -f /opt/liferay/tomcat/logs/catalina.2016-04-13.log +tail -f /opt/liferay/logs/liferay.2016-04-13.log +``` \ No newline at end of file diff --git a/templates/liferay/1/docker-compose.yml b/templates/liferay/1/docker-compose.yml new file mode 100644 index 0000000..6494570 --- /dev/null +++ b/templates/liferay/1/docker-compose.yml @@ -0,0 +1,34 @@ +liferay: + ports: + - 8080:8080/tcp + environment: + SETUP_WIZARD_ENABLED: ${SETUP_WIZARD_ENABLED} + DB_KIND: mysql + DB_HOST: liferaydb + DB_USERNAME: ${MYSQL_USER} + DB_PASSWORD: ${MYSQL_PASSWORD} + log_driver: '' + labels: + io.rancher.container.pull_image: always + tty: true + log_opt: {} + image: rsippl/liferay:7.0.0-2 + links: + - mysql:liferaydb + stdin_open: true +mysql: + environment: + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + MYSQL_DATABASE: ${MYSQL_DATABASE} + MYSQL_USER: ${MYSQL_USER} + MYSQL_PASSWORD: ${MYSQL_PASSWORD} + log_driver: '' + labels: + io.rancher.container.pull_image: always + tty: true + command: + - --character-set-server=utf8 + - --collation-server=utf8_general_ci + log_opt: {} + image: mysql:5.6.30 + stdin_open: true diff --git a/templates/liferay/1/rancher-compose.yml b/templates/liferay/1/rancher-compose.yml new file mode 100644 index 0000000..ec259e8 --- /dev/null +++ b/templates/liferay/1/rancher-compose.yml @@ -0,0 +1,56 @@ +.catalog: + name: "Liferay" + version: "7.0.0-2" + description: "Liferay Portal Community Edition" + uuid: liferay-7.0.0-2 + minimum_rancher_version: v1.0.0 + questions: + - variable: SETUP_WIZARD_ENABLED + label: "Enable setup wizard" + description: "Enable this option if the Setup Wizard should be displayed the first time the portal is started." + required: true + type: "boolean" + default: false + - variable: MYSQL_DATABASE + description: "Name of the database" + label: "Database name" + type: "string" + required: true + default: "lportal" + - variable: MYSQL_USER + description: "Login name for the database user" + label: "Database login name" + type: "string" + required: true + default: "liferay" + - variable: MYSQL_PASSWORD + description: "Password for the database user" + label: "Database password" + type: "string" + required: true + default: "secret" + - variable: MYSQL_ROOT_PASSWORD + description: "Password for the database root user" + label: "Database root password" + type: "string" + required: true + default: "secret" + +liferay: + scale: 1 + health_check: + port: 8080 + interval: 2000 + unhealthy_threshold: 3 + request_line: GET / HTTP/1.0 + healthy_threshold: 2 + response_timeout: 2000 + +mysql: + scale: 1 + health_check: + port: 3306 + interval: 2000 + unhealthy_threshold: 3 + response_timeout: 2000 + healthy_threshold: 2 \ No newline at end of file diff --git a/templates/liferay/catalogIcon-liferay.svg b/templates/liferay/catalogIcon-liferay.svg new file mode 100644 index 0000000..2318063 --- /dev/null +++ b/templates/liferay/catalogIcon-liferay.svg @@ -0,0 +1,170 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/liferay/config.yml b/templates/liferay/config.yml new file mode 100644 index 0000000..c1b18ae --- /dev/null +++ b/templates/liferay/config.yml @@ -0,0 +1,5 @@ +name: Liferay Portal +description: | + An open source enterprise portal +version: 7.0.0-2 +category: Enterprise Portal \ No newline at end of file