This wiki is our main source of documentation.
cd build
make wiki
Our dockerfile specifies linux/amd64 as the container platform. Some mac's have issues running this in Docker. In the case your wiki container keeps crashing, follow these supplemental steps:
cd build
make wiki_arm
Once the wiki is deployed, we need to restore the contents of our versioned wiki.
cd build
make restore_wiki
cd build
make docker_push_wiki_prod
kubectl delete -f k8s/wiki.yml
kubectl apply -f k8s/wiki.yml
kubectl port-forward service/wiki-service 8181:8181
Restoring the state of the wiki in our production environment is a little more involved than in our development environment. We need to shell into the pod in the cluster and manually run some commands.
kubectl exec -it deployment/wiki-service -n default -- bash
cp -r /cfbackups_prd/conf /bitnami/dokuwiki cp -r /cfbackups_prd/pages /bitnami/dokuwiki/data cp -r /cfbackups_prd/attic /bitnami/dokuwiki/data cp -r /cfbackups_prd/meta /bitnami/dokuwiki/data cp -r /cfbackups_prd/meta_attic /bitnami/dokuwiki/data cp -r /cfbackups_prd/media /bitnami/dokuwiki/data cp -r /cfbackups_prd/media_meta /bitnami/dokuwiki/data cp -r /cfbackups_prd/media_attic /bitnami/dokuwiki/data echo '' > /bitnami/dokuwiki/conf/users.auth.php
kubectl port-forward service/wiki-service 8181:8181
Updates to the wiki are only allowed to be made locally. The process for doing so is as follows:
cd build
admin:admin
The process for versioning updates to the wiki is as follows:
cd build
make backup_wiki