Sign inSign up

soarinferret/dokuwiki

By soarinferret

•Updated about 6 years ago

Image
0

309

soarinferret/dokuwiki repository overview

⁠DokuWiki

In brief, this container is an extension of the bitnami/dokuwiki⁠ to add appropriate SSH settings to the daemon user running apache.

THIS IS A DROP IN REPLACEMENT FOR BITNAMI/DOKUWIKI - it works exactly the same, just change the name of the container. It shouldn't break anything.

⁠Environment Variables

  • SSH_RSA_KEY - base64 encoded private RSA key used to access the repository. May need write access.
    • Probably want to setup a deploy key for your repo. Links for GitHub⁠ and GitLab⁠
    • To encode it: cat id_rsa | base64 -w 0
  • GIT_REPO - SSH URL to access the repo. Will look like this: [email protected]:SoarinFerret/doku.git
  • GIT_FINGERPRINT - Base64 encoded fingerprints for your git provider
    • Easiest way to generate this: ssh-keyscan github.com | base64 -w 0

⁠How this works

Pretty simple, I inject a script into the bitnami container called gitbacked_setup.sh, and then sed the app-entrypoint.sh to run my script after it does its thing.

⁠Kubernetes? You got it

Thats actually the reason I made this! You can use the default bitnami helm chart⁠ for dokuwiki, replacing the image and adding the extra environment variables though secrets.

RSA=$(cat id_rsa | base64 -w0 )
FINGER=$(ssh-keyscan gitlab.com | base64 -w 0)
URL="[email protected]:thisisnotarealrepo/ihope.git"

tee ./doku-secret.yaml > /dev/null <<EOF
---
apiVersion: v1
kind: Secret
metadata:
  name: gitbacked
  namespace: dokuwiki
stringData:
  GIT_FINGERPRINT: "$FINGER"
  GIT_REPO: "$URL"
  SSH_RSA_KEY: "$RSA"
EOF

kubectl create ns dokuwiki
kubectl apply -f ./doku-secret.yaml

helm repo add bitnami https://charts.bitnami.com/bitnami
helm install the-doku bitnami/dokuwiki --set image.repository=soarinferret/dokuwiki,image.tag=latest,extraEnvVarsSecret=gitbacked

Tag summary

Content type

Image

Digest

Size

214.2 MB

Last updated

about 6 years ago

docker pull soarinferret/dokuwiki