Re: How to best access registry from scripts

2018-05-12 Thread Clayton Coleman
oc serviceaccount get-token Is a little easier for scripting On May 11, 2018, at 10:49 PM, Mohamed Lrhazi wrote: I got it ! Thanks! » oc describe secret robot-token-6w99j On Fri, May 11, 2018 at 10:38 PM, Mohamed Lrhazi wrote: > One more quick question ;) > > I created a service acount, ho

Re: How to best access registry from scripts

2018-05-11 Thread Mohamed Lrhazi
I got it ! Thanks! » oc describe secret robot-token-6w99j On Fri, May 11, 2018 at 10:38 PM, Mohamed Lrhazi wrote: > One more quick question ;) > > I created a service acount, how do I get the password or token I would use > in docker to pull images? > > » oc describe sa robot > Name:

Re: How to best access registry from scripts

2018-05-11 Thread Mohamed Lrhazi
One more quick question ;) I created a service acount, how do I get the password or token I would use in docker to pull images? » oc describe sa robot Name:robot Namespace: saml-idp-server Labels: Annotations: Image pull secrets: robot-dockercfg-k

Re: How to best access registry from scripts

2018-05-11 Thread Mohamed Lrhazi
Thanks Ben! On Fri, May 11, 2018 at 10:16 PM, Ben Parees wrote: > > > > > On Fri, May 11, 2018, 22:11 Mohamed Lrhazi wrote: > >> Hello, >> >> The registry requires token based authentication which seems to be an >> expiring token. >> How would I access docker images remotely, from a cronjob t

Re: How to best access registry from scripts

2018-05-11 Thread Ben Parees
On Fri, May 11, 2018, 22:11 Mohamed Lrhazi wrote: > Hello, > > The registry requires token based authentication which seems to be an > expiring token. > How would I access docker images remotely, from a cronjob task? Is there a > way to make an image publicly available? or a way to get a permanen

How to best access registry from scripts

2018-05-11 Thread Mohamed Lrhazi
Hello, The registry requires token based authentication which seems to be an expiring token. How would I access docker images remotely, from a cronjob task? Is there a way to make an image publicly available? or a way to get a permanent token? https://docs.openshift.org/latest/install_config/regi