From fdfa4243b979d6606e12b1dab141b62ffa8a750b Mon Sep 17 00:00:00 2001 From: Dewan Ishtiaque Ahmed <30604461+dewan-ahmed@users.noreply.github.com> Date: Fri, 4 Jun 2021 11:20:46 -0300 Subject: [PATCH 1/2] Removing preceding '$' from code blocks When a user tries to copy a code block using the "copy" button, the preceding '$' gets copied too and defeats the purpose of the shortcut button. Hence proposing the removal of the preceding '$' from code blocks. --- README.md | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 19c58069a9..c0eb3fbc04 100644 --- a/README.md +++ b/README.md @@ -36,37 +36,37 @@ Shipwright supports any tool that can build container images in Kubernetes clust * We also require a Tekton installation (v0.19+). To install the latest version, run: ```bash - $ kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.20.1/release.yaml + kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.20.1/release.yaml ``` * Install the Shipwright deployment. To install the latest version, run: ```bash - $ kubectl apply --filename https://github.com/shipwright-io/build/releases/download/nightly/nightly-2021-03-24-1616591545.yaml + kubectl apply --filename https://github.com/shipwright-io/build/releases/download/nightly/nightly-2021-03-24-1616591545.yaml ``` * Install the Shipwright strategies. To install the latest version, run: ```bash - $ kubectl apply --filename https://github.com/shipwright-io/build/releases/download/nightly/default_strategies.yaml + kubectl apply --filename https://github.com/shipwright-io/build/releases/download/nightly/default_strategies.yaml ``` * Generate a secret to access your container registry, such as one on [Docker Hub](https://hub.docker.com/) or [Quay.io](https://quay.io/): ```bash - $ REGISTRY_SERVER=https://index.docker.io/v1/ REGISTRY_USER= REGISTRY_PASSWORD= - $ kubectl create secret docker-registry push-secret \ + REGISTRY_SERVER=https://index.docker.io/v1/ REGISTRY_USER= REGISTRY_PASSWORD= + kubectl create secret docker-registry push-secret \ --docker-server=$REGISTRY_SERVER \ --docker-username=$REGISTRY_USER \ --docker-password=$REGISTRY_PASSWORD \ - --docker-email=me@here.com + --docker-email= ``` * Create a Build object, replacing `` with the registry username your `push-secret` secret have access to: ```bash - $ REGISTRY_ORG= - $ cat < + cat < Date: Mon, 7 Jun 2021 12:42:15 -0300 Subject: [PATCH 2/2] Updating based on review comments - Put '$' back to command outputs - Replaced build with *Build* and buildruns with *BuildRuns* since those are names of CRDs. --- README.md | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index c0eb3fbc04..9d05ec1c07 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Shipwright supports any tool that can build container images in Kubernetes clust --docker-email= ``` -* Create a Build object, replacing `` with the registry username your `push-secret` secret have access to: +* Create a *Build* object, replacing `` with the registry username your `push-secret` secret have access to: ```bash REGISTRY_ORG= @@ -85,16 +85,15 @@ Shipwright supports any tool that can build container images in Kubernetes clust EOF ``` - ```bash - kubectl get builds - ``` -The output will be something like: +To view the *Build* which you just created: ``` + $ kubectl get builds + NAME REGISTERED REASON BUILDSTRATEGYKIND BUILDSTRATEGYNAME CREATIONTIME buildpack-nodejs-build True Succeeded ClusterBuildStrategy buildpacks-v3 68s ``` -* Submit your buildrun: +* Submit your *BuildRun*: ```bash cat <