This repository contains a curated set of php files, configuration, and templates for OpenShift in order to produce a Drupal demo application and instructions to promote through its lifecycle. See the official OpenShift documentation for more information about templates.
- Overview
- Building the OpenShift Drupal Lifecycle Projects
- Lifecycle Processing
- Additional Information
Provided and supported by DLT, official Templates are listed in the top level of this repository, making it easy for developers to get started creating drupal applications with the newest technologies. This assumes you have a working OpenShift environment with proper authority and resources to build, deploy, and manage applications.
You can check to see which of the official Templates are available in your OpenShift cluster by doing one of the following:
-
Log into the web console and click Add to Project
-
List them for the openshift project using the Command Line Interface
$ oc get templates -n openshift
$ oc get projects
Community templates and image streams are not provided or supported by Red Hat. This curated list of community maintained resources exemplify OpenShift best practices and provide clear documentation to serve as a reference for other developers.
$ git clone https://github.com/DLT-Solutions-JBoss/drupal-openshift.git
$ cd drupal-openshift
$ oc login https://master.example.ocp.yourcompany.com --username=*admin* (--password=*admin_pass*)
- DEMONAME - The name of the demo srupal app you wish to build
- USER - Your OpenShift user name.
- REPO - Your cloned git repository full url.
- CLUSER - The domain name of your OpenShift cluster.
$ ./configuration/setup_projects.sh DEMONAME USER
$ ./configuration/setup_dev.sh DEMONAME
$ ./configuration/setup_test.sh DEMONAME
$ ./configuration/setup_prod.sh DEMONAME
$ ./configuration/setup_jenkins.sh DEMONAME REPO CLUSTER
Example: $ ./configuration/setup_jenkins.sh DEMONAME https://github.com/DLT-Solutions-JBoss/drupal-openshift.git master.example.ocp.yourcompany.com
$ oc create -f drupal8-mysql-persistent.yml -n openshift
$ ./configuration/verify_prerequisistes.sh DEMONAME USER
- Clone this repository from github
- Create a new project for your development
- Install theme or module using git submodules in order to produce a federated look and feel
- Create a new application instance from the Catalog
- Install Drupal app
- Install Config Suite, Backup and Migrate, and (optionally) Server IP modules
- Configure Config Suite to import and export automatically
- Restore the database with the latest backup from your repo.
TBD
$ ./configuration/cleanup.sh DEMONAME
You can find more information about creating templates and image-streams in the official OpenShift Documentation. Below are some quick links to important sections:
You can find more information about Drupal in the official Drupal 8 Documentation. Below are some quick links to important sections: