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"
Copy-Item -Path "C:\githubhome\.upmconfig.toml" -Destination "C:\Users\runneradmin\" -Force
} 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

View File

@ -100,10 +100,13 @@ class Docker {
dockerIsolationMode,
} = parameters;
// 🔥 Add log for runnerTempPath
console.log(`🛠️ [DockerCommand] runnerTempPath = ${runnerTempPath}`);
const githubHome = path.join(runnerTempPath, '_github_home');
if (!existsSync(githubHome)) mkdirSync(githubHome);
return `docker run \
const dockerCommand = `docker run \
--workdir c:${dockerWorkspacePath} \
--rm \
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
@ -125,7 +128,12 @@ class Docker {
--isolation=${dockerIsolationMode} \
${image} \
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;