Compare commits
8 Commits
1.0.9-pref
...
1.0.14
Author | SHA1 | Date | |
---|---|---|---|
6eea65be60 | |||
6eb8631f9e | |||
502d6ccec7 | |||
cb3aa63370 | |||
e59495665c | |||
fb79fe0dc8 | |||
bd2619a14b | |||
54f1c382f5 |
@ -5,10 +5,8 @@ RUN apk add --update --no-cache \
|
||||
git \
|
||||
jq
|
||||
WORKDIR "/home/node"
|
||||
ARG WIKI_PACKAGE=wiki@0.23.0
|
||||
ARG WIKI_CLIENT=wiki-client@0.23.0
|
||||
ARG WIKI_PACKAGE=wiki@0.28.0
|
||||
RUN su node -c "npm install -g --prefix . $WIKI_PACKAGE"
|
||||
RUN su node -c "cd /home/node/lib/node_modules/wiki; npm install --save $WIKI_CLIENT"
|
||||
RUN su node -c "mkdir -p .wiki"
|
||||
VOLUME "/home/node/.wiki"
|
||||
EXPOSE 3000
|
||||
|
38
README.md
38
README.md
@ -7,7 +7,7 @@ Start Playing Federated Wiki: http://start.fed.wiki
|
||||
docker run -p 3000:3000 -it --rm \
|
||||
dobbs/farm
|
||||
|
||||
Visit http://localhost:3000 and http://anything.localtest.me:3000
|
||||
Visit http://localhost:3000 and http://anything.localhost:3000
|
||||
|
||||
### Run a local wiki that will survive a reboot
|
||||
|
||||
@ -26,11 +26,31 @@ devops pipeline.
|
||||
Testing new images locally:
|
||||
|
||||
``` bash
|
||||
TAG=1.0.8-prefer-title
|
||||
TAG=1.0.14-prefer-title
|
||||
IMAGE=dobbs/farm:$TAG
|
||||
docker build --tag $IMAGE .
|
||||
```
|
||||
|
||||
# Publish containers
|
||||
|
||||
GitHub
|
||||
|
||||
``` bash
|
||||
git tag -am "" "$TAG"
|
||||
git push --atomic origin main "$TAG"
|
||||
```
|
||||
|
||||
Docker Hub
|
||||
|
||||
``` bash
|
||||
docker build --tag $IMAGE . # if you haven't already
|
||||
docker build --tag dobbs/farm:latest . # if you haven't already
|
||||
docker push $IMAGE
|
||||
docker push dobbs/farm:latest
|
||||
```
|
||||
|
||||
# Experiment with K8S
|
||||
|
||||
With the local kubernetes example (see [examples/k8s/README.md](./examples/k8s/README.md)):
|
||||
|
||||
``` bash
|
||||
@ -39,17 +59,3 @@ kubectl patch deployment.apps/wiki-deployment \
|
||||
--type='json' \
|
||||
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"'$IMAGE'"}]'
|
||||
```
|
||||
|
||||
# Publish containers with experimental code
|
||||
|
||||
GitHub
|
||||
``` bash
|
||||
git tag -am "" "$TAG"
|
||||
git push --atomic origin main "$TAG"
|
||||
```
|
||||
|
||||
Docker Hub
|
||||
|
||||
``` bash
|
||||
docker push $IMAGE
|
||||
```
|
||||
|
Reference in New Issue
Block a user