Skip to content

kevprice83/custom-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Docker Build for deploying a custom APIcast gateway image on OpenShift

Steps to follow:

Pre-reqs
  • 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

Step 1

Create a new project as shown in the 3scale docs here and the secret necessary for pulling the configuration from your 3scale account.

Step 2

Execute oc new-app https://mygithub-repo/my-project/.git, you should see a new build started success message in the output.

Step 3

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages