#NEWLINE# def build_and_run( self , images ) : #NEWLINE# #INDENT# 'Make this image and run it' #NEWLINE# from harpoon.ship.builder import Builder #NEWLINE# Builder ( ) . make_image ( self , images ) #NEWLINE# try : #NEWLINE# #INDENT# Runner ( ) . run_container ( self , images ) #NEWLINE# #UNINDENT# except DockerAPIError as error : #NEWLINE# #INDENT# raise BadImage ( 'Failed to start the container' , error = error )