Installing WikiJS in OpenShift / OKD 4 using Crunchy PostgreSQL
At Binero Group, we work every day on improving software delivery. The company has Open Source running through its veins and as such we try to give back to our clients and customers what we develop as much as possible.
In search for a Kubernetes based Wiki, we came across WikiJS, a modern Wiki that has support for markdown files and multiple storage backends like git and PostgreSQL.
The website provides information about installing on Kubernetes, but OpenShift has some additional security features that need to be taken into account when installing software on it.
If you prefer to go straight to the code and a short explanation, you can find the Git repo here with a reference to the author that started the effort, but please read along a bit more if you want to learn about the reasoning behind the setup.
First of all we like to use products that have a large install base and a high level of automation, so the efforts for maintaining the software are kept to a minimum : we like to focus as much as possible on effective use and profit from the capabilities Kubernetes has to this. For that reason, we choose to use the Crunchy Data Postgres Operator for installing PostgreSQL as a storage backend for WikiJS, it being the best supported one.
Then we show how to build a docker image that can be added to an internal repository as needed and used for a so called sideloading mode, meaning the files that the installation needs are packaged in the container, so no internet connection is needed to pull the files when doing the initialisation. The image is publicly available on Docker Hub and is currently manually updated - this may change in the future, we recommend to setup the build for yourself to have the latest version required.