lower the k8s experiment instructions on the pages

The change in README aims to make the tagging, building, publishing
instructions together as an offer for docker savvy folks to take
control of their own docker images and publishing flows.

Also expecting a bump in versions to bring in a patch update to
wiki-client
This commit is contained in:
Eric Dobbs 2022-10-05 11:49:30 -06:00
parent 6eb8631f9e
commit 6eea65be60
1 changed files with 13 additions and 10 deletions

View File

@ -26,23 +26,15 @@ 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 .
``` ```
With the local kubernetes example (see [examples/k8s/README.md](./examples/k8s/README.md)):
``` bash
k3d image import $IMAGE --cluster wiki
kubectl patch deployment.apps/wiki-deployment \
--type='json' \
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"'$IMAGE'"}]'
```
# Publish containers # Publish containers
GitHub GitHub
``` bash ``` bash
git tag -am "" "$TAG" git tag -am "" "$TAG"
git push --atomic origin main "$TAG" git push --atomic origin main "$TAG"
@ -56,3 +48,14 @@ docker build --tag dobbs/farm:latest . # if you haven't already
docker push $IMAGE docker push $IMAGE
docker push dobbs/farm:latest docker push dobbs/farm:latest
``` ```
# Experiment with K8S
With the local kubernetes example (see [examples/k8s/README.md](./examples/k8s/README.md)):
``` bash
k3d image import $IMAGE --cluster wiki
kubectl patch deployment.apps/wiki-deployment \
--type='json' \
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/image", "value":"'$IMAGE'"}]'
```