def create_source(srcdir, preload_image, datapusher=False):
try:<EOL><INDENT>docker.web_command(<EOL>command='<STR_LIT>',<EOL>rw={srcdir: '<STR_LIT>'},<EOL>image=preload_image)<EOL>if datapusher:<EOL><INDENT>docker.web_command(<EOL>command='<STR_LIT>',<EOL>rw={srcdir: '<STR_LIT>'},<EOL>image=preload_image)<EOL><DEDENT>shutil.copy(<EOL>srcdir + '<STR_LIT>',<EOL>srcdir)<EOL>shutil.copy(<EOL>srcdir + '<STR_LIT>',<EOL>srcdir)<EOL><DEDENT>finally:<EOL><INDENT>docker.web_command(<EOL>command='<STR_LIT>',<EOL>rw={srcdir: '<STR_LIT>'},<EOL>)<EOL><DEDENT>
Copy ckan source, datapusher source (optional), who.ini and schema.xml
from preload image into srcdir