functions icon indicating copy to clipboard operation
functions copied to clipboard

Document using a custom registry

Open treeder opened this issue 9 years ago • 2 comments

Should include:

  • [ ] Starting up a registry - https://docs.docker.com/registry/
  • [ ] Use that registry in image in func.yaml?
  • [ ] Pushing function to that registry
  • [ ] Use that registry when creating route

treeder avatar Nov 29 '16 17:11 treeder

This is more than just a documentation issue no?

Looking at the FIXME at the bottom of

https://github.com/iron-io/functions/blob/master/api/runner/task.go

It seems like there has been an admirable effort to avoid a giant bag of global configuration - but this is a case where you would need something analogous to the gitconfig byHost entries - so that from a fully qualified image path - you could reference globally configured credentials per registry.

Is the stop-gap to have a AppCreateListener watch for route additions and pre-fetch the image using a custom docker client?

ptone avatar Jan 07 '17 14:01 ptone

Also will be good to consider how credentials can be registered as hooks at runtime so that registries using short term credentials can be dynamic:

https://cloud.google.com/container-registry/docs/advanced-authentication

ptone avatar Jan 07 '17 14:01 ptone