switch example to use deployments instead of applying config changes directly

Can you spawn an issue and assign someone to this?  Maybe have Mark Turansky help run this down?


> On Oct 16, 2014, at 9:33 AM, Ben Parees <notifications@github.com> wrote:
> 
> In examples/simple-ruby-app/run.sh:
> 
> > @@ -48,6 +45,11 @@ do
> >    rc=$?
> >  done
> >  
> > +# poke the docker registry to make sure it's alive
> > +echo "Probing docker registry"
> > +curl localhost:5001 >& /dev/null
> Will add the http. Not going to add OSHOST since it's just intended to be run w/o modification, so unless we have a strong reason to think localhost wouldn't work on some machine, it's not worth making it configurable.
> 
> As for why we do this... i'm being a bit cagey here. There seems to be a problem w/ k8s services or the registry or both, where they sometimes fail the first request. If we don't do this, that first request is the build process doing a push and then the build fails. This circumvents that problem. (Strictly speaking only the first one is needed, the second one is just to illustrate to anyone watching the output, that the registry responded)
> 
> —
> Reply to this email directly or view it on GitHub.