Added Concrete5 CMS Template. with auto configuration in v0.2 or manua… (#170)

* Added Concrete5 CMS Template with auto configuration in v0.2 or manual config in v0.1

* List maintainer.

* Changing to mysql as mariadb was giving timeout errors. Changing to mysql has fixed this.

* Change log to single .png

* Change default site name to "MySite"
This commit is contained in:
Josh Calder 2016-07-28 04:10:17 +10:00 committed by Bill Maxwell
parent b416078b00
commit 7dc7c01e97
6 changed files with 210 additions and 0 deletions

View File

@ -0,0 +1,27 @@
CMSMysql:
environment:
MYSQL_ROOT_PASSWORD: ${root_password}
MYSQL_DATABASE: ${db_name}
MYSQL_USER: ${db_userame}
MYSQL_PASSWORD: ${db_password}
labels:
io.rancher.container.pull_image: always
tty: true
image: mysql
volumes:
- ${db_data_location}:/var/lib/mysql
stdin_open: true
volume_driver: ${volume_driver}
Concrete5App:
labels:
io.rancher.container.pull_image: always
tty: true
image: opensaas/concrete5
links:
- CMSMysql:mysql
volumes:
- ${cms_application_data}:/var/www/html/application
- ${cms_packages_data}:/var/www/html/packages
stdin_open: true
volume_driver: ${volume_driver}

View File

@ -0,0 +1,57 @@
.catalog:
name: "Concrete5"
version: "v0.1"
description: "Concrete5 CMS"
uuid: Concrete5-0
minimum_rancher_version: v0.51.0
questions:
- variable: root_password
description: "MySQL root password - keep this password complex and secure"
label: "MySQL Root Password"
required: true
default: "password"
type: "string"
- variable: db_name
description: "MySQL Database Name - to use in the Concrete5 setup"
label: "MySQL Database Name"
required: true
default: "CMS_DB"
type: "string"
- variable: db_username
description: "MySQL Username - to use in the Concrete5 setup"
label: "MySQL Username"
required: true
default: "CMS_USER"
type: "string"
- variable: db_password
description: "MySQL password for the above user - to use in the Concrete5 setup"
label: "MySQL Password"
required: true
default: "password"
type: "string"
- variable: db_data_location
description: "Location on the host for the database files"
label: "DB Data Location"
required: true
default: "CMS_DB_DATA"
type: "string"
- variable: volume_driver
description: "Volume Driver for the persistant data locations requires docker 1.7"
label: "Volume Driver"
type: "string"
- variable: cms_application_data
description: "Concrcte5 application folder for persistant data storage"
label: "Application Folder"
required: true
default: "CMS_APP_DATA"
type: "string"
- variable: cms_packages_data
description: "Concrcte5 packages folder for persistant data storage"
label: "Packages Folder"
required: true
default: "CMS_PACK_DATA"
type: "string"
CMSMysql:
scale: 1
Concrete5App:
scale: 1

View File

@ -0,0 +1,43 @@
CMSMysql:
environment:
MYSQL_ROOT_PASSWORD: ${root_password}
MYSQL_DATABASE: ${db_name}
MYSQL_USER: ${db_username}
MYSQL_PASSWORD: ${db_password}
labels:
io.rancher.container.pull_image: always
tty: true
image: mysql
volumes:
- ${db_data_location}:/var/lib/mysql
stdin_open: true
volume_driver: ${volume_driver}
CMSConfig:
image: opensaas/concrete5
tty: true
stdin_open: true
links:
- CMSMysql:mysql
volumes:
- ${cms_application_data}:/var/www/html/application
- ${cms_packages_data}:/var/www/html/packages
labels:
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
volume_driver: ${volume_driver}
command: bash -c "chown -R www-data. application; chown -R www-data. packages; sleep 2m; php -f concrete/bin/concrete5.php c5:install --db-server=mysql --db-username=${db_username} --db-password=${db_password} --db-database=${db_name} --site=${cms_sitename} --admin-email=${cms_admin_email} --admin-password=${cms_admin_password} -n -vvv"
Concrete5App:
labels:
io.rancher.container.pull_image: always
io.rancher.sidekicks: CMSConfig
tty: true
links:
- CMSMysql:mysql
image: opensaas/concrete5
volumes:
- ${cms_application_data}:/var/www/html/application
- ${cms_packages_data}:/var/www/html/packages
volume_driver: ${volume_driver}
stdin_open: true

View File

@ -0,0 +1,76 @@
.catalog:
name: "Concrete5"
version: "v0.2"
description: "Concrete5 CMS"
uuid: Concrete5-1
minimum_rancher_version: v0.51.0
questions:
- variable: root_password
description: "MySQL root password - keep this password complex and secure"
label: "MySQL Root Password"
required: true
default: "password"
type: "string"
- variable: db_name
description: "MySQL Database Name - to use in the Concrete5 setup"
label: "MySQL Database Name"
required: true
default: "CMS_DB"
type: "string"
- variable: db_username
description: "MySQL Username - to use in the Concrete5 setup"
label: "MySQL Username"
required: true
default: "CMS_USER"
type: "string"
- variable: db_password
description: "MySQL password for the above user - to use in the Concrete5 setup"
label: "MySQL Password"
required: true
default: "password"
type: "string"
- variable: db_data_location
description: "Location on the host for the database files"
label: "DB Data Location"
required: true
default: "CMS_DB_DATA"
type: "string"
- variable: volume_driver
description: "Volume Driver for the persistant data locations requires docker 1.7"
label: "Volume Driver"
type: "string"
- variable: cms_application_data
description: "Concrcte5 application folder for persistant data storage"
label: "Application Folder"
required: true
default: "CMS_APP_DATA"
type: "string"
- variable: cms_packages_data
description: "Concrcte5 packages folder for persistant data storage"
label: "Packages Folder"
required: true
default: "CMS_PACK_DATA"
type: "string"
- variable: cms_admin_email
description: "Concrcete5 admin email address"
label: "Admin Email"
required: true
default: "admin@example.com"
type: "string"
- variable: cms_admin_password
description: "Concrcete5 admin password"
label: "Admin Password"
required: true
default: "password"
type: "string"
- variable: cms_sitename
description: "Concrcete5 Sitename"
label: "Sitename"
required: true
default: "MySite"
type: "string"
CMSMysql:
scale: 1
Concrete5App:
scale: 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -0,0 +1,7 @@
name: Concrete5
description: |
Concrete5.7 CMS for buidling easy and beautiful websites
version: v0.2
category: CMS
maintainer: Josh Calder <josh@opensaas.com.au>
projectURL: http://www.opensaas.com.au