docker_runner/application_runner.py
def run_command(cmd):
    """
    Run the command, piping stderr to stdout.
    Sends output to stdout.
    :param cmd: The list for args to pass to the process
    """
    try:
        process = subprocess.Popen(
            cmd,
            stdin=subprocess.PIPE,
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
        )
        outdata, _ = process.communicate()
        return outdata
    except subprocess.CalledProcessError as e:
        return e
def run_command(cmd):
    """
    Run the command, piping stderr to stdout.
    Sends output to stdout.
    :param cmd: The list for args to pass to the process
    """
    try:
        process = subprocess.Popen(
            cmd,
            stdin=subprocess.PIPE,
            stdout=subprocess.PIPE,
            stderr=subprocess.STDOUT,
        )
        outdata, _ = process.communicate()
        return outdata
    except subprocess.CalledProcessError as e:
        return e
def run_command ( cmd ) : try : process = subprocess . Popen ( cmd , stdin = subprocess . PIPE , stdout = subprocess . PIPE , stderr = subprocess . STDOUT , ) outdata , _ = process . communicate ( ) return outdata except subprocess . CalledProcessError as e : return e
Run the command, piping stderr to stdout.
    Sends output to stdout.
    :param cmd: The list for args to pass to the process
Run the command piping stderr to stdout . Sends output to stdout . : param cmd : The list for args to pass to the process