Update image local build script (#14599)
Update image local build script (#14599)

* Use the full image name for local image build FROM

When we are writing the `FROM` statement for the local image build
Dockerfile, we need to use the fully qualified name of the image we
are building on top of.

Signed-off-by: Steve Kuznetsov <a7da0fca91d9933d2725d731a48cabdc9e8ffd7a@redhat.com>

* Ensure local image tmp dirs are cleaned up on error

When the script fails to build an image, we need to ensure that the temp
directory we created for context is cleaned up anyway. Trapping the
functionality on exit is the appropriate way to acheive this.

Signed-off-by: Steve Kuznetsov <a7da0fca91d9933d2725d731a48cabdc9e8ffd7a@redhat.com>

* Removed extraneous comma from local build debugging output

Signed-off-by: Steve Kuznetsov <a7da0fca91d9933d2725d731a48cabdc9e8ffd7a@redhat.com>

markllama/origin,rhamilto/origin,wanghaoran1988/origin,jupierce/origin,raffaelespazzoli/origin,gabemontero/origin,mfojtik/origin,legionus/origin,abutcher/origin,raffaelespazzoli/origin,ingvagabund/origin,jwhonce/origin,ramr/origin,jim-minter/origin,pravisankar/origin,php-coder/origin,php-coder/origin,kargakis/origin,jwhonce/origin,smarterclayton/origin,matthyx/origin,pravisankar/origin,aveshagarwal/origin,kargakis/origin,sdminonne/origin,spadgett/origin,imcsk8/origin,rootfs/origin,jsafrane/origin,xiuwang/origin,jwhonce/origin,php-coder/origin,enj/origin,rhcarvalho/origin,liangxia/origin,smarterclayton/origin,ryanj/origin,linzhaoming/origin,sg00dwin/origin,nak3/origin,rootfs/origin,rrati/origin,sdminonne/origin,liggitt/origin,dobbymoodge/origin,smarterclayton/origin,tnozicka/origin,tnozicka/origin,hferentschik/origin,mkumatag/origin,dcbw/origin,ironcladlou/origin,nak3/origin,jupierce/origin,pecameron/origin,rajatchopra/origin,maxamillion/origin,ironcladlou/origin,ramr/origin,rhamilto/origin,mrogers950/origin,liangxia/origin,xiuwang/origin,jupierce/origin,rhcarvalho/origin,jeremyeder/origin,deads2k/origin,jwhonce/origin,tnozicka/origin,sferich888/origin,jpeeler/origin,linzhaoming/origin,goern/origin,wjiangjay/origin,matthyx/origin,hroyrh/origin,mfojtik/origin,PI-Victor/origin,ryanj/origin,ramr/origin,rhcarvalho/origin,hroyrh/origin,jeremyeder/origin,childsb/origin,abutcher/origin,simo5/origin,mdshuai/origin,imcsk8/origin,hroyrh/origin,mdshuai/origin,mdshuai/origin,liangxia/origin,ravisantoshgudimetla/origin,sjug/origin,imcsk8/origin,soltysh/origin,luciddreamz/origin,sallyom/origin,raffaelespazzoli/origin,dcbw/origin,bparees/origin,luciddreamz/origin,matthyx/origin,akram/origin,luciddreamz/origin,hferentschik/origin,dinhxuanvu/origin,mrogers950/origin,openshift/origin,hferentschik/origin,enj/origin,rootfs/origin,louyihua/origin,danmcp/origin,gabemontero/origin,PI-Victor/origin,dobbymoodge/origin,kargakis/origin,dinhxuanvu/origin,linzhaoming/origin,akram/origin,smarterclayton/origin,juanvallejo/origin,aveshagarwal/origin,rhamilto/origin,luciddreamz/origin,elyscape/origin,csrwng/origin,pweil-/origin,danmcp/origin,php-coder/origin,miminar/origin,rajatchopra/origin,mrogers950/origin,elyscape/origin,dgoodwin/origin,rajatchopra/origin,rajatchopra/origin,sjug/origin,childsb/origin,coreydaley/origin,pecameron/origin,sdminonne/origin,mdshuai/origin,pmorie/origin,detiber/origin,juanvallejo/origin,sallyom/origin,jim-minter/origin,pweil-/origin,miminar/origin,matthyx/origin,rootfs/origin,louyihua/origin,ravisantoshgudimetla/origin,ryanj/origin,adelton/origin,dobbymoodge/origin,rajatchopra/origin,luciddreamz/origin,coreydaley/origin,wanghaoran1988/origin,mdshuai/origin,louyihua/origin,liggitt/origin,danmcp/origin,rrati/origin,smarterclayton/origin,ironcladlou/origin,openshift/origin,wanghaoran1988/origin,wanghaoran1988/origin,jwhonce/origin,PI-Victor/origin,rhcarvalho/origin,liggitt/origin,jsafrane/origin,wjiangjay/origin,miminar/origin,goern/origin,pmorie/origin,detiber/origin,xiuwang/origin,akram/origin,nhr/origin,nak3/origin,dgoodwin/origin,abutcher/origin,kargakis/origin,PI-Victor/origin,spadgett/origin,linzhaoming/origin,jeremyeder/origin,tnozicka/origin,imcsk8/origin,jpeeler/origin,dgoodwin/origin,danmcp/origin,dgoodwin/origin,hferentschik/origin,mahak/origin,soltysh/origin,csrwng/origin,adelton/origin,markllama/origin,elyscape/origin,simo5/origin,pravisankar/origin,mrogers950/origin,markllama/origin,liangxia/origin,detiber/origin,PI-Victor/origin,sg00dwin/origin,mahak/origin,wjiangjay/origin,kargakis/origin,rhcarvalho/origin,sferich888/origin,rhamilto/origin,luciddreamz/origin,juanvallejo/origin,dobbymoodge/origin,legionus/origin,linzhaoming/origin,jim-minter/origin,adelton/origin,maxamillion/origin,nhr/origin,aveshagarwal/origin,openshift/origin,juanvallejo/origin,detiber/origin,gabemontero/origin,rrati/origin,aveshagarwal/origin,dinhxuanvu/origin,markllama/origin,hferentschik/origin,goern/origin,jpeeler/origin,imcsk8/origin,simo5/origin,pecameron/origin,legionus/origin,wanghaoran1988/origin,childsb/origin,kargakis/origin,mdshuai/origin,jpeeler/origin,jupierce/origin,sallyom/origin,JacobTanenbaum/origin,juanvallejo/origin,dinhxuanvu/origin,ravisantoshgudimetla/origin,markllama/origin,dcbw/origin,dcbw/origin,Miciah/origin,spadgett/origin,ryanj/origin,dgoodwin/origin,imcsk8/origin,anpingli/origin,childsb/origin,pravisankar/origin,jpeeler/origin,dobbymoodge/origin,pmorie/origin,nhr/origin,miminar/origin,sg00dwin/origin,adelton/origin,soltysh/origin,dcbw/origin,JacobTanenbaum/origin,ryanj/origin,tnozicka/origin,elyscape/origin,rrati/origin,liangxia/origin,mrogers950/origin,pravisankar/origin,adelton/origin,Miciah/origin,coreydaley/origin,ryanj/origin,sg00dwin/origin,mahak/origin,aveshagarwal/origin,wjiangjay/origin,spadgett/origin,markllama/origin,jupierce/origin,childsb/origin,liangxia/origin,csrwng/origin,bparees/origin,ravisantoshgudimetla/origin,miminar/origin,bparees/origin,mkumatag/origin,sferich888/origin,ramr/origin,maxamillion/origin,abutcher/origin,liggitt/origin,mrogers950/origin,dobbymoodge/origin,juanvallejo/origin,detiber/origin,dinhxuanvu/origin,childsb/origin,legionus/origin,ingvagabund/origin,PI-Victor/origin,mfojtik/origin,wjiangjay/origin,miminar/origin,abutcher/origin,ingvagabund/origin,hferentschik/origin,liggitt/origin,nhr/origin,maxamillion/origin,anpingli/origin,raffaelespazzoli/origin,deads2k/origin,simo5/origin,wjiangjay/origin,ravisantoshgudimetla/origin,pmorie/origin,rootfs/origin,ramr/origin,nhr/origin,liggitt/origin,simo5/origin,php-coder/origin,louyihua/origin,legionus/origin,jwhonce/origin,jeremyeder/origin,enj/origin,anpingli/origin,goern/origin,maxamillion/origin,rrati/origin,pmorie/origin,jsafrane/origin,deads2k/origin,louyihua/origin,spadgett/origin,php-coder/origin,mkumatag/origin,jeremyeder/origin,pweil-/origin,elyscape/origin,matthyx/origin,rajatchopra/origin,sjug/origin,JacobTanenbaum/origin,tnozicka/origin,Miciah/origin,rhamilto/origin