4 Commits
1.0.3 ... 1.0.6

Author SHA1 Message Date
aa23f2f9b3 version 1.0.6 2020-08-29 12:44:03 -06:00
517e7b3e6a Upgrade to wiki 0.21.2 2020-08-29 12:42:28 -06:00
d5b43b160a add NPM_CONFIG_PREFIX environment variable
Should remove one step from the instructions for developing plugins.
It's a step I consistently miss in my haste to get on with the hacking
and don't notice myself skip.
2020-08-29 12:37:30 -06:00
f94133b505 bump to wiki-client@0.20.1 and wiki-server@0.17.5 2020-04-19 17:35:00 -06:00
2 changed files with 6 additions and 4 deletions

View File

@ -5,13 +5,15 @@ RUN apk add --update --no-cache \
git \ git \
jq jq
WORKDIR "/home/node" WORKDIR "/home/node"
ARG WIKI_PACKAGE=wiki@0.21.0 ARG WIKI_PACKAGE=wiki@0.21.2
RUN su node -c "npm install -g --prefix . $WIKI_PACKAGE" \ RUN su node -c "npm install -g --prefix . $WIKI_PACKAGE"
&& su node -c "cd /home/node/lib/node_modules/wiki && npm install --save wiki-server@0.17.3 wiki-client@0.20.0"
RUN su node -c "mkdir -p .wiki" RUN su node -c "mkdir -p .wiki"
VOLUME "/home/node/.wiki" VOLUME "/home/node/.wiki"
EXPOSE 3000 EXPOSE 3000
USER node USER node
ENV PATH="${PATH}:/home/node/bin" ENV PATH="${PATH}:/home/node/bin"
# Adding this line to make local plugin development easier
# see https://local-farm.wiki.dbbs.co/make-a-new-plugin.html
ENV NPM_CONFIG_PREFIX="${HOME}"
ENTRYPOINT ["dumb-init"] ENTRYPOINT ["dumb-init"]
CMD ["wiki", "--farm", "--security_type=friends"] CMD ["wiki", "--farm", "--security_type=friends"]

View File

@ -18,7 +18,7 @@ spec:
fsGroup: 1000 fsGroup: 1000
containers: containers:
- name: farm - name: farm
image: dobbs/farm:1.0.1 image: dobbs/farm:1.0.6
command: ["wiki"] command: ["wiki"]
ports: ports:
- containerPort: 3000 - containerPort: 3000