def _proxy_settings(self):
if not ('<STR_LIT>' in environ or '<STR_LIT>' in environ<EOL>or '<STR_LIT>' in environ or '<STR_LIT>' in environ):<EOL><INDENT>return {}<EOL><DEDENT>https_proxy = environ.get('<STR_LIT>')<EOL>if https_proxy is None:<EOL><INDENT>https_proxy = environ.get('<STR_LIT>')<EOL><DEDENT>http_proxy = environ.get('<STR_LIT>')<EOL>if http_proxy is None:<EOL><INDENT>http_proxy = environ.get('<STR_LIT>')<EOL><DEDENT>no_proxy = environ.get('<STR_LIT>')<EOL>if no_proxy is None:<EOL><INDENT>no_proxy = environ.get('<STR_LIT>', '<STR_LIT>')<EOL><DEDENT>no_proxy = no_proxy + '<STR_LIT>'<EOL>out = [<EOL>'<STR_LIT>'<EOL>'<STR_LIT>']<EOL>if https_proxy is not None:<EOL><INDENT>out.append('<STR_LIT>' + posix_quote(https_proxy) + '<STR_LIT:\n>')<EOL>out.append('<STR_LIT>' + posix_quote(https_proxy) + '<STR_LIT:\n>')<EOL><DEDENT>if http_proxy is not None:<EOL><INDENT>out.append('<STR_LIT>' + posix_quote(http_proxy) + '<STR_LIT:\n>')<EOL>out.append('<STR_LIT>' + posix_quote(http_proxy) + '<STR_LIT:\n>')<EOL><DEDENT>if no_proxy is not None:<EOL><INDENT>out.append('<STR_LIT>' + posix_quote(no_proxy) + '<STR_LIT:\n>')<EOL>out.append('<STR_LIT>' + posix_quote(no_proxy) + '<STR_LIT:\n>')<EOL><DEDENT>with open(self.sitedir + '<STR_LIT>', '<STR_LIT:w>') as f:<EOL><INDENT>f.write("<STR_LIT>".join(out))<EOL><DEDENT>return {self.sitedir + '<STR_LIT>': '<STR_LIT>'}<EOL>
Create/replace ~/.datacats/run/proxy-environment and return
entry for ro mount for containers