By: Jacob Verghese user 12 Mar 2021 at 10:40 a.m. CST

4 Responses
Jacob Verghese gravatar
Hello Gluu Support, I am not sure if this is going to be an issue at some point, but we noticed something odd in JackRabbit message logging after having stood up the K8's Gluu4 deployment, which includes the 'mandatory' JackRabbit container. After having port forward and logged into JackRabbit UI; I noticed that there is only one available sub-directory structure in JackRabbit: ./default/etc/. . While the logs in oxTrust container claims to be doing a jackrabbit 'Sync' to the './default/opt/. ' folder of custom files, which is not visible via the JackRabbit UI portal. Expected Behavior: when I log into into JackRabbit UI Portal I should be able to see t the './default/opt' folder as well. ``` $ kubectl logs oxtrust-0 -n iam360|grep jackrabbit ... INFO - webdav - 2021-03-12 13:24:36,087 - Sync files with remote directory http://jackrabbit:8080/repository/default/opt/gluu/jetty/identity/custom ... ``` SnapShot when logging into JacobRabbit UI console https://github.com/jverghese-collab/public_images/blob/master/jackRabbit_UI.pdf Please let us know why the behavior is as such. Regds, Jacob

By Mohammad Abudayyeh staff 12 Mar 2021 at 10:52 a.m. CST

Mohammad Abudayyeh gravatar
Hi Jacob, Thats intended. The sync is a pull from Jackrabbit. The behavior is intended. If you want to add things to the custom folder under folders `pages` , `static`...etc you need to create it inside Jackrabbit. https://gluu.org/docs/gluu-server/installation-guide/install-kubernetes/#working-with-jackrabbit ``` /opt/gluu/jetty/oxauth/ |-- custom | |-- i18n | |-- libs | |-- pages | `-- static ```

By Jacob Verghese user 12 Mar 2021 at 12:32 p.m. CST

Jacob Verghese gravatar
Thank for your response. I did follow the docs. to the Gluu4 docs. But could you pls. elaborate on one or a couple of popular use cases, to leverage this sync benefit across folders using JackRabbit; since this component is only available as part of K8's deployment and not with say docker-compose. ~Jacob

By Mohammad Abudayyeh staff 12 Mar 2021 at 1:20 p.m. CST

Mohammad Abudayyeh gravatar
Sure Jacob. Follow this link https://gluu.org/docs/gluu-server/operation/custom-design/#custom-oxauth-login-page-example-in-cloud-native-edition-configmaps and click on the jackrabbit tab so you can see an example.

By Jacob Verghese user 13 Mar 2021 at 9:10 a.m. CST

Jacob Verghese gravatar
Thank you for that. Follow up question then: Q1: what about when it comes to 'custom' python scripts. Does that mean potentially we can create the below structure directory in JackRabbit and put the python-code in this standard directory structure for custom python code? ``` /opt/gluu/jetty/oxauth/custom/python-code/ ``` Q2: Also I observed in the cloud-native **Readme.md** documentation, the following ... > === "Script" > > !!!warning > Used for quick testing with Jackrabbit and should be avoided. > > 1. Copy files to Jackrabbit container at `/opt/webdav` > > 1. Run `python3 /app/scripts/jca_sync.py` . What does this imply? Is this related to deploying and overriding python script on the fly with JackRabbit? If so what is this directory structure `/opt/webdav` ~Jacob .