Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
6eea65be60 | |||
6eb8631f9e | |||
502d6ccec7 | |||
cb3aa63370 |
@ -5,7 +5,7 @@ RUN apk add --update --no-cache \
|
|||||||
git \
|
git \
|
||||||
jq
|
jq
|
||||||
WORKDIR "/home/node"
|
WORKDIR "/home/node"
|
||||||
ARG WIKI_PACKAGE=wiki@0.27.0
|
ARG WIKI_PACKAGE=wiki@0.28.0
|
||||||
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"
|
||||||
|
36
README.md
36
README.md
@ -26,11 +26,31 @@ devops pipeline.
|
|||||||
Testing new images locally:
|
Testing new images locally:
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
TAG=1.0.8-prefer-title
|
TAG=1.0.14-prefer-title
|
||||||
IMAGE=dobbs/farm:$TAG
|
IMAGE=dobbs/farm:$TAG
|
||||||
docker build --tag $IMAGE .
|
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)):
|
With the local kubernetes example (see [examples/k8s/README.md](./examples/k8s/README.md)):
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
@ -39,17 +59,3 @@ kubectl patch deployment.apps/wiki-deployment \
|
|||||||
--type='json' \
|
--type='json' \
|
||||||
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"'$IMAGE'"}]'
|
-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