- OpenShift cluster running and with a Redis instance already deployed
- Persistent volume configured (tokens for client update are stored)
- User running the commands in OpenShift must be allowed to pull and build images
The DockerFile is recognised by OpenShift and will initiate a Docker build in this case when deploying a new app. I have an example DockerFile in this project for installing additional dependencies to enable the dynamic client registrations feature based on the APIcast docs
Create a new project as shown in the 3scale docs here and the secret necessary for pulling the configuration from your 3scale account.
Execute oc new-app https://mygithub-repo/my-project/.git
, you should see a new build started success message in the output.
In the build logs, either from the console or the command line you will see the build take place and after about 5-10 minutes it should be complete and you will need to take the URL you see. This URL is the location of the custom image in the internal OpenShift registry. Replace the value of the original image in the 3scale APIcast template. In this template you will see the image in the DeploymentConfig object, replace this with the new value.