wordpress-example-app
How to deploy a WordPress app on OpenShift running in unpriviliged containers
Prerequisites
- Have a DNS entry for your site
Create a network DNS change in Topdesk to apply for your DNS name.
e.g.wp-example.its.uu.nl
Steps
-
Clone this repo
UtrechtUniversity/wordpress-example-appgit clone https://github.com/UtrechtUniversity/wordpress-example-app -
Replace the
<your-...>with your own data in the yaml files belowmariadb-secret.yamlwordpress-cm.yamlwordpress-ingress.yamlwordpress-secret.yaml
e.g.
wordpress-email: <your-email>withwordpress-email: thisismyemail@email.com -
Run the script wordpress-app.sh or oc command
bash wordpress-app.shoroc apply -f .FYI.
oc apply -f .could lead to a race condition, that is why I made the above script. So the correct order of resource creation is applied. -
Login to your admin site
Go to the url you set in the ingress file, and append /admin to the url.
e.g wp-example.its.uu.nl/adminLogin with the credential you have set.