- Clone this patch repository and push it to your git web repository manager e.g. Github, Gitlab etc.
- Replace
patch.zip
with the desired patch (defaults to 7.6.6 no-op patch fromgenerate-noop-patch.sh
). - Update
sso-patch_buildconfig.yaml
:- Change dockerStrategy
from
version if required (defaults to RH-SSO 7.6) - Change git
uri
to your cloned repository (defaults to the original)
- Change dockerStrategy
- Update Dockerfile (if you need to use different parent image)
FROM <<your_parent_image>>
- Add, commit, and push your changes to your copy of this repo.
- Run CLI login command. Copy command shown on this page
https://{{openshifthostnamegoeshere}}/oauth/token/request
.- {{openshifthostnamegoeshere}} => replace it with your Openshift instance hostname
oc project projnamegoeshere
to select your projectoc policy add-role-to-user system:image-puller system:serviceaccount:$(oc project -q):default --namespace=openshift
to allow official image to be pulled into your projectoc create -f sso-patch_imagestream.yaml
to setup output stream for your imageoc create -f sso-patch_buildconfig.yaml
to install patch buildconfig- Image should automatically start building, but if not use
oc start-build sso-patch
. - Wait for image to build, if successful it will be added as
sso-patch:latest
. - Edit your application's deployment config and replace the
name
(triggers section) value with:sso-patch:latest
, and also change thelastTriggeredImage
(triggers section) andimage
(containers section) variables toimage-registry.openshift-image-registry.svc:5000/{{projnamegoeshere}}/sso-patch:latest
value.- {{projnamegoeshere}} => replace it with your project name
- Save the deployment config change and reload it. Check the project pods, you will notice that SSO container was restarted.
- Open the SSO pod terminal and run this commands to check wheater the patch was applied successfully:
/opt/eap/bin/jboss-cli.sh
patch info
-
Notifications
You must be signed in to change notification settings - Fork 4
Openshift Container Patch Template
License
jboss-container-images/redhat-sso-container-patch
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Openshift Container Patch Template
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published