Commit Graph

19 Commits

Author SHA1 Message Date
fb2aa0f67c Add example kubernetes deployment
This configuration partially works with kubernetes 1.15 running
locally using Docker Desktop for Mac and kind (k8s in docker).

For completeness, we installed kind & created a cluster like this:

    cd /tmp/ && GO111MODULE="on" go get sigs.k8s.io/kind
    kind create cluster --name workshop
    export KUBECONFIG="$(kind get kubeconfig-path --name="workshop")"

We describe finicky details discovered while creating wiki.yaml.

The persistent volume when mounted in wiki-config begins its life with
all files owned by root. This prevented our node user inside the
container from creating the config files inside .wiki. It took a while
to discover the correct securityContext for the wiki-config container.

We tested this configuration as follows:

    alias k=kubectl
    k apply -f wiki.yaml
    export POD=$(k get pod -lapp=wiki -o jsonpath='{.items[*].metadata.name}')
    export PASSWORD=$(k exec svc/wiki-service -- jq -r .admin .wiki/config.json)
    k port-forward svc/wiki-service 3000:80 > /dev/null &
    pbcopy <<<"$PASSWORD"
    open http://localhost:3000
    # click lock icon in the browser to login to wiki page
    # paste the password from the clipboard
    # click wiki to toggle editing on
    # make a few edits to the wiki page

Something about authentication is NOT working for anything except
localhost. When we try the same tests using http://localtest.me or
configuring foo.local in the MacOS /etc/hosts file, for some reason
the cookies don't seem to be passed through to the server. All edits
on other pages end up in browser localStorage.

Nevertheless, I'll commit what I have for now.
2019-11-22 12:24:34 -07:00
fb81d51e29 Use default node user & dumb-init & remove config assumptions
By default the wiki will run in farm mode with friends security
1.0.0
2019-11-16 16:49:43 -07:00
5e6f732fed Bump wiki to version 0.19.0 0.52.0 2019-08-14 12:07:10 -04:00
f85afce8c8 Change base image to node:10-alpine & wiki to 0.17.0 0.51.0 2019-03-27 22:26:09 -06:00
76280f3e7b Update wiki to 0.16.2 0.50.1 2019-03-11 08:00:53 -06:00
356afda8a7 Update wiki version for security fix 0.50.0 2018-11-27 21:10:15 -08:00
e9bd94e860 remind myself how to publish plugin experiments 2018-02-28 08:23:21 -07:00
b0be20f5f3 point to local-farm.wiki.dbbs.co instead 0.14.0 2018-02-25 22:32:46 -07:00
26329ee584 upgrade to wiki-0.14.0 and move configure-wiki to separate step
We should only need to run the configure-wiki script once instead of
every time we start the container.  Also, I don't think that script
was correctly handling PID 1 role (e.g. don't think we forwarded
signals to node nor reaped zombies)
2018-02-25 21:58:43 -07:00
e37d746c69 upgrade to node-8 and to wiki-0.13.0 0.13.0 2017-12-11 08:02:50 -07:00
86548c594a upgrade to wiki 0.12.2
includes update to client and several plugins:
calendar, markdown, and html
0.12.2
2017-11-06 18:00:57 -07:00
ef34fdc759 enable github-based npm packages for WIKI_PACKAGE
npm needs git installed in order to install packages from github
0.12.1+github
2017-10-02 07:10:55 -06:00
e22b66240d enabled building scoped packages & bumped version to 0.12.1 0.12.1 2017-09-20 17:50:00 -06:00
e06405adc1 bumped wiki version to 0.12.0 0.12.0 2017-09-04 21:56:47 -06:00
bc8204c9d3 use build arg for wiki version & for container tag
There is a new version of wiki available.  Want to tag this version
and enable building and tagging the next version.
2017-09-04 21:45:32 -06:00
7f64713024 include script to set-owner-name 0.11.4 2017-07-22 21:55:38 -06:00
2b708a73b2 configure-and-launch-wiki: full path to exec wiki 2017-07-22 13:31:50 -06:00
aa90eb3e86 configure-and-launch-wiki is now owned by app 2017-07-22 13:18:51 -06:00
df8da7ba2c Federated Wiki farm
Encapsulate a few specific parts of wiki configuration as a starting
point for exploring wiki.
2017-07-15 22:36:22 -06:00