From 6eea65be604c4d3cbc81de88cd1a12921906a881 Mon Sep 17 00:00:00 2001 From: Eric Dobbs Date: Wed, 5 Oct 2022 11:49:30 -0600 Subject: [PATCH] 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 --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 01b9353..fdac223 100644 --- a/README.md +++ b/README.md @@ -26,23 +26,15 @@ 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 . ``` -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 GitHub + ``` bash git tag -am "" "$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 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'"}]' +```