Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
aa23f2f9b3 | |||
517e7b3e6a | |||
d5b43b160a | |||
f94133b505 | |||
60c869a141 |
@ -5,12 +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"
|
||||||
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"]
|
||||||
|
@ -53,10 +53,8 @@ The repos in Dockerhub and GitHub are configured to automatically build new tags
|
|||||||
|
|
||||||
# Publish experimental plugins
|
# Publish experimental plugins
|
||||||
|
|
||||||
|
Invoke Dockerhub and GitHub integration.
|
||||||
``` bash
|
``` bash
|
||||||
docker build \
|
git tag -am "" '1.0.2-pre-0217'
|
||||||
--tag dobbs/farm:0.14.0-frame \
|
git push --atomic origin master '1.0.2-pre-0217'
|
||||||
--build-arg WIKI_PACKAGE='dobbs/wiki#frame' \
|
|
||||||
.
|
|
||||||
docker push dobbs/farm:0.14.0-frame
|
|
||||||
```
|
```
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user