XWiki OKD / OpenShift Deployment
- Shell 100%
| helm-install | ||
| keycloak | ||
| kustomize | ||
| .gitignore | ||
| Dockerfile.solr | ||
| Dockerfile.xwiki | ||
| make-xwiki-solr.sh | ||
| README.md | ||
XWiki OKD
XWiki OKD / OpenShift Deployment
- in 3 pods:
- xwiki on tomcat
- solr
- postgresql
- uses the original XWiki and SOLR images
- Openshift / OKD secure deployment
Build
oc login api.mycluster.net:6443
oc project my-xwiki-project
kustomize build kustomize/openshift-build | oc apply -f -
Run
- Copy
kustomize/instancetemplate/*to your own instance dir - adapt
kustomize/myinstance/kustomization.yaml - run
kustomize build kustomize/myinstance/kustomization.yaml | oc apply -f -
Edit config files
XWIKIPOD=$(oc get pod -l app=xwiki,app.kubernetes.io/part-of=pp1 -o name| cut -d/ -f2)
oc cp $XWIKIPOD:/usr/local/xwiki/data/xwiki.cfg xwiki.cfg
oc cp $XWIKIPOD:/usr/local/xwiki/data/xwiki.properties xwiki.properties
Then edit the files and push them back to the container.
XWIKIPOD=$(oc get pod -l app=xwiki,app.kubernetes.io/part-of=pp1 -o name| cut -d/ -f2)
oc cp xwiki.cfg $XWIKIPOD:/usr/local/xwiki/data/xwiki.cfg
oc cp xwiki.properties $XWIKIPOD:/usr/local/xwiki/data/xwiki.properties
If you change the deployment you have to take care about the configurations in the config files!
ToDo
- feedback to xwiki-docker team (access rights in container, nonroot)
- optimize handling of config files
- JGROUPS implementation for upscaling
- extensive testing
Peter Pfläging <peter@pflaeging.net>