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.
SSH_RSA_KEY - base64 encoded private RSA key used to access the repository. May need write access.
GIT_REPO - SSH URL to access the repo. Will look like this: [email protected]:SoarinFerret/doku.gitGIT_FINGERPRINT - Base64 encoded fingerprints for your git provider
ssh-keyscan github.com | base64 -w 0Pretty 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.
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
Content type
Image
Digest
Size
214.2 MB
Last updated
about 6 years ago
docker pull soarinferret/dokuwiki