Adding some more logging

This commit is contained in:
Daniel Lupiañez Casares 2025-04-28 12:05:58 +02:00
parent 034a36f362
commit 4c52b94312
2 changed files with 11 additions and 3 deletions

View File

@ -5,7 +5,7 @@ if (Test-Path "C:\githubhome\.upmconfig.toml") {
Write-Host "Copying .upmconfig.toml to C:\Users\runneradmin" Write-Host "Copying .upmconfig.toml to C:\Users\runneradmin"
Copy-Item -Path "C:\githubhome\.upmconfig.toml" -Destination "C:\Users\runneradmin\" -Force Copy-Item -Path "C:\githubhome\.upmconfig.toml" -Destination "C:\Users\runneradmin\" -Force
} else { } else {
Write-Host "No .upmconfig.toml found at C:\githuhHome" Write-Host "No .upmconfig.toml found at C:\githubhome"
} }
# Import any necessary registry keys, ie: location of windows 10 sdk # Import any necessary registry keys, ie: location of windows 10 sdk

View File

@ -100,10 +100,13 @@ class Docker {
dockerIsolationMode, dockerIsolationMode,
} = parameters; } = parameters;
// 🔥 Add log for runnerTempPath
console.log(`🛠️ [DockerCommand] runnerTempPath = ${runnerTempPath}`);
const githubHome = path.join(runnerTempPath, '_github_home'); const githubHome = path.join(runnerTempPath, '_github_home');
if (!existsSync(githubHome)) mkdirSync(githubHome); if (!existsSync(githubHome)) mkdirSync(githubHome);
return `docker run \ const dockerCommand = `docker run \
--workdir c:${dockerWorkspacePath} \ --workdir c:${dockerWorkspacePath} \
--rm \ --rm \
${ImageEnvironmentFactory.getEnvVarString(parameters)} \ ${ImageEnvironmentFactory.getEnvVarString(parameters)} \
@ -125,7 +128,12 @@ class Docker {
--isolation=${dockerIsolationMode} \ --isolation=${dockerIsolationMode} \
${image} \ ${image} \
powershell c:/steps/entrypoint.ps1`; powershell c:/steps/entrypoint.ps1`;
}
// 🔥 Add log for final dockerCommand
console.log('🛠️ [DockerCommand] Final Windows Docker command:');
console.log(dockerCommand);
return dockerCommand;
} }
export default Docker; export default Docker;