1
0
mirror of https://github.com/ko-build/ko.git synced 2025-11-06 09:19:12 +02:00

Format markdown (#353)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation
2021-04-28 18:42:44 -07:00
committed by GitHub
parent 5395f992fc
commit 9e8023aded

View File

@@ -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