Skip to content

Commit

Permalink
Format markdown (ko-build#353)
Browse files Browse the repository at this point in the history
Signed-off-by: Knative Automation <automation@knative.team>
  • Loading branch information
knative-automation authored Apr 29, 2021
1 parent 5395f99 commit 9e8023a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,22 +377,24 @@ kustomize build config | ko resolve -f -

Yes! Follow these steps:

* Connect to your OpenShift installation: https://docs.openshift.com/container-platform/4.7/cli_reference/openshift_cli/getting-started-cli.html#cli-logging-in_cli-developer-commands
* Expose the OpenShift Internal Registry so you can push to it: https://docs.openshift.com/container-platform/4.7/registry/securing-exposing-registry.html
* Export your token to `$HOME/.docker/config.json`:
- Connect to your OpenShift installation:
https://docs.openshift.com/container-platform/4.7/cli_reference/openshift_cli/getting-started-cli.html#cli-logging-in_cli-developer-commands
- Expose the OpenShift Internal Registry so you can push to it:
https://docs.openshift.com/container-platform/4.7/registry/securing-exposing-registry.html
- Export your token to `$HOME/.docker/config.json`:

```sh
oc registry login --to=$HOME/.docker/config.json
```

* Create a namespace where you will push your images, i.e: `ko-images`
* Execute this command to set `KO_DOCKER_REPO` to publish images to the internal registry.
- Create a namespace where you will push your images, i.e: `ko-images`
- Execute this command to set `KO_DOCKER_REPO` to publish images to the internal
registry.

```sh
export KO_DOCKER_REPO=$(oc get route default-route -n openshift-image-registry --template='{{ .spec.host }}')/ko-images
```


# Acknowledgements

This work is based heavily on learnings from having built the
Expand Down

0 comments on commit 9e8023a

Please sign in to comment.