HUB
Sign inSign up

solsson/go-ko-runner

By solsson

•Updated about 7 years ago

Installs Go modules in Kubernetes clusters

Image
0

2.4K

solsson/go-ko-runner repository overview

⁠Go ko runner

With Knative⁠ we run current master a lot, sometimes with multiple modules, without the need to edit any code.

This docker image automates the process of ko⁠ apply.

⁠Example run

This example assumes that you have https://github.com/triggermesh/knative-local-registry⁠ in your cluster, which is why there's no authentication setup for Docker push.

runner=solsson/go-ko-runner@sha256:a1c2b790e59c7c482879181339fef03ca3486cf133691642b5feff482155f9e0
kubectl create serviceaccount ko-runner --namespace=default
kubectl create clusterrolebinding ko-runner --clusterrole=cluster-admin --serviceaccount=default:ko-runner --namespace=default
kubectl run install-knative-build-pipeline --serviceaccount=ko-runner \
  --restart=Never --image=$runner \
  --env="KO_SOURCE=github.com/knative/build-pipeline" --env="KO_REVISION=master" \
  --env="EXIT_DELAY=infinity"

The exit delay is there because you might want to kubectl exec -ti install-knative-build-pipeline and do stuff 🙂. After installation you'll probably want to:

kubectl create clusterrolebinding ko-runner
kubectl create serviceaccount ko-runner

⁠Support

We would love your feedback on this project so don't hesitate to let us know what is wrong and how we could improve it, just file an issue⁠

⁠Code of Conduct

This plugin is by no means part of CNCF⁠ but we abide by its code of conduct⁠

Tag summary

Content type

Image

Digest

Size

365.7 MB

Last updated

about 7 years ago

docker pull solsson/go-ko-runner