This is an example how the Symfony 2 Demo Application can be deployed on the OpenShift V3 PaaS
At the moment the symfony S2i Image is used to build this application, due to the following issue on the official sti-php image
- Create a new OpenShift 3 Project
$ oc new-project symfony2-demo
1.1 Add Builder Image (only needed as long as the official Image does not support Symfony)
$ oc new-app https://github.com/phil-pona/sti-symfony --context-dir=5.6 --strategy=docker
-
Run the following command to create the symfony Demo Application
$ oc create -f https://raw.githubusercontent.com/phil-pona/ose3-symfony2-ex/master/openshift/templates/symfony-demo.json $ oc process symfony-demo | oc create -f -
-
start manually the build of the demo application
$ oc start-build symfony-demo
-
Once the build is running, watch your build progress
$ oc build-logs symfony-demo-1
-
Wait for symfony-demo pods to start up (this can take a few minutes):
$ oc get pods -w
-
The Symfony Demo Application
access the application on /web
Work in Progress: add missing .htaccess file
Released under the Apache License 2.0. See the LICENSE file.