#NEWLINE# def create_docker_project_image( project_code ) : #NEWLINE# #INDENT# tag = ( project_code + ':0.1' ) #NEWLINE# command = [ 'docker build -t {tag} .' . format ( tag = tag ) ] #NEWLINE# p = subprocess . Popen ( p , stdout = subprocess . PIPE , shell = True ) #NEWLINE# ( output , err ) = p . communicate ( ) #NEWLINE# container_id = output . decode ( 'utf-8' ) #NEWLINE# p . stdout . close ( ) #NEWLINE# return tag