This repo contains the following artifacts required to run Drupal apps on OpenShift.
- PHP FPM image running PHP 7.2
- Nginx image
- Drupal template
$ cd s2i-build
$ docker build -t shapeblock/drupal-8:7.2 .
$ docker push shapeblock/drupal-8:7.2
$ oc import-image shapeblock/drupal-8:7.2 --confirm
# or if creating a new tag
$ oc tag --source=docker shapeblock/drupal-8:7.2 shapeblock/drupal-8:7.2
$ docker build -t shapeblock/nginx-drupal:1.17 .
$ docker push shapeblock/nginx-drupal:1.17
$ oc import-image shapeblock/nginx-drupal:1.17 --confirm
The template is a quick and UI-friendly way to boot a Drupal 8 application using the above artifacts. This can be imported into the project by running,
$ oc apply -f drupal-8-template.yml
NOTE you have to change the project name in the template according to where you have imported the base images.