export async function runE2EInDocker()

in src/utils/dockerUtils.ts [36:56]


export async function runE2EInDocker(volumn: string, containerName: string): Promise<boolean> {
    try {
        if (!await pullLatestImage(containerName)) {
            return false;
        }
        const cmd: string = `docker run -v ${volumn} `
                            + `-e ARM_CLIENT_ID `
                            + `-e ARM_TENANT_ID `
                            + `-e ARM_SUBSCRIPTION_ID `
                            + `-e ARM_CLIENT_SECRET `
                            + `-e ARM_TEST_LOCATION `
                            + `-e ARM_TEST_LOCATION_ALT `
                            + `--rm ${containerName} /bin/bash -c `
                            + `"ssh-keygen -t rsa -b 2048 -C terraformTest -f /root/.ssh/id_rsa -N ''; rake -f ../Rakefile e2e"`;
        terraformShellManager.getIntegratedShell().runTerraformCmd(cmd);
        return true;
    } catch (error) {
        promptForOpenOutputChannel("Failed to run end to end tests in Docker. Please open the output channel for more details.", DialogType.error);
        return false;
    }
}