Skip to content

Commit 99e76b9

Browse files
committed
Fixed Docker memory limit.
1 parent 4886f61 commit 99e76b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

DockerBuild.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ param(
1717
[switch]$StartVsmon, # Enable the remote debugger.
1818
[string]$Script = 'Build.ps1', # The build script to be executed inside Docker.
1919
[string]$Isolation = 'process', # Docker isolation mode (process or hyperv).
20-
[string]$Memory = '8g', # Docker memory limit.
20+
[string]$Memory = '16g', # Docker memory limit.
2121
[int]$Cpus = [Environment]::ProcessorCount, # Docker CPU limit (defaults to host's CPU count).
2222
[Parameter(ValueFromRemainingArguments)]
2323
[string[]]$BuildArgs # Arguments passed to `Build.ps1` within the container (or Claude prompt if -Claude is specified).
@@ -395,7 +395,7 @@ if (-not (Test-Path $dockerContextDirectory))
395395

396396
# Prepare volume mappings (stored as mapping strings, "-v" flags added later)
397397
$VolumeMappings = @("${SourceDirName}:${SourceDirName}")
398-
$MountPoints = @($SourceDirName, "c:\packages")
398+
$MountPoints = @($SourceDirName)
399399
$GitDirectories = @($SourceDirName)
400400

401401
# Define static Git system directory for mapping. This used by Teamcity as an LFS parent repo.

src/PostSharp.Engineering.BuildTools/Resources/DockerBuild.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ param(
1717
[switch]$StartVsmon, # Enable the remote debugger.
1818
[string]$Script = 'Build.ps1', # The build script to be executed inside Docker.
1919
[string]$Isolation = 'process', # Docker isolation mode (process or hyperv).
20-
[string]$Memory = '8g', # Docker memory limit.
20+
[string]$Memory = '16g', # Docker memory limit.
2121
[int]$Cpus = [Environment]::ProcessorCount, # Docker CPU limit (defaults to host's CPU count).
2222
[Parameter(ValueFromRemainingArguments)]
2323
[string[]]$BuildArgs # Arguments passed to `Build.ps1` within the container (or Claude prompt if -Claude is specified).
@@ -395,7 +395,7 @@ if (-not (Test-Path $dockerContextDirectory))
395395

396396
# Prepare volume mappings (stored as mapping strings, "-v" flags added later)
397397
$VolumeMappings = @("${SourceDirName}:${SourceDirName}")
398-
$MountPoints = @($SourceDirName, "c:\packages")
398+
$MountPoints = @($SourceDirName)
399399
$GitDirectories = @($SourceDirName)
400400

401401
# Define static Git system directory for mapping. This used by Teamcity as an LFS parent repo.

0 commit comments

Comments
 (0)