Overview#
The following docs is a guide on how to switch from Jackrabbit (JCA) to custom scripts to apply customization.
oxAuth customization#
-
Steps to apply oxAuth customization:
-
Get all directories and files used for customization.
Example, given the following directory:
/path/to/oxauth-customization ├── i18n ├── libs ├── pages │ └── example.xhtml └── staticCreate archive file using
tar:cd /path/to/oxauth-customization tar cvzf oxauth-custom.tar.gz * -
Upload the
oxauth-custom.tar.gzsomewhere so we can download the file. -
Create custom script
oxauth-custom.shto download and extract theoxauth-custom.tar.gz:#!/bin/sh # step 1: download oxauth-custom.tar.gz wget https://$SERVER/oxauth-custom.tar.gz -O /tmp/oxauth-custom.tar.gz # step 2: extract oxauth-custom.tar.gz tar xvf /tmp/oxauth-custom.tar.gz -C /opt/gluu/jetty/oxauth/custom -
Create configmap to store the
oxauth-custom.shfile:kubectl -n $NAMESPACE create cm oxauth-custom --from-file=oxauth-custom.sh -
Modify
override-values.yamlto add new volumes and custom script:oxauth: customScripts: - /tmp/oxauth-custom.sh volumes: - name: oxauth-custom configMap: name: oxauth-custom defaultMode: 493 volumeMounts: - name: oxauth-custom mountPath: /tmp/oxauth-custom.sh subPath: oxauth-custom.sh -
run
helm installorhelm upgrade
-
oxTrust customization#
-
Steps to apply oxTrust customization:
-
Get all directories and files used for customization.
Example, given the following directory:
/path/to/oxtrust-customization ├── i18n ├── libs ├── pages │ └── example.xhtml └── staticCreate archive file using
tar:cd /path/to/oxtrust-customization tar cvzf oxtrust-custom.tar.gz * -
Upload the
oxtrust-custom.tar.gzsomewhere so we can download the file. -
Create custom script
oxtrust-custom.shto download and extract theoxtrust-custom.tar.gz:#!/bin/sh # step 1: download oxtrust-custom.tar.gz wget https://$SERVER/oxtrust-custom.tar.gz -O /tmp/oxtrust-custom.tar.gz # step 2: extract oxtrust-custom.tar.gz tar xvf /tmp/oxtrust-custom.tar.gz -C /opt/gluu/jetty/identity/custom -
Create configmap to store the
oxtrust-custom.shfile:kubectl -n $NAMESPACE create cm oxtrust-custom --from-file=oxtrust-custom.sh -
Modify
override-values.yamlto add new volumes and custom script:oxtrust: customScripts: - /tmp/oxtrust-custom.sh volumes: - name: oxtrust-custom configMap: name: oxtrust-custom defaultMode: 493 volumeMounts: - name: oxtrust-custom mountPath: /tmp/oxtrust-custom.sh subPath: oxtrust-custom.sh -
run
helm installorhelm upgrade
-