Skip to content

Commit 172ee67

Browse files
committed
DockerBuild.ps1: update memory parameter default to 24g
1 parent e82b471 commit 172ee67

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
@@ -78,7 +78,7 @@
7878
Memory and CPU limits only apply to hyperv isolation.
7979
8080
.PARAMETER Memory
81-
Docker memory limit (e.g., "8g"). Only used with hyperv isolation.
81+
Docker memory limit (e.g., "8g"). Only used with hyperv isolation. Defaults to 24g.
8282
8383
.PARAMETER Cpus
8484
Docker CPU limit. Defaults to the host processor count. Only used with hyperv isolation.
@@ -143,7 +143,7 @@ param(
143143
[string]$RegistryImage, # Use a pre-built image from a registry, skipping Dockerfile build entirely.
144144
[switch]$NoInit, # Do not generate or call Init.g.ps1 (skips git config, safe.directory, etc).
145145
[string]$Isolation = 'hyperv', # Docker isolation mode (process or hyperv). Memory/CPU limits only apply to hyperv.
146-
[string]$Memory = '32g', # Docker memory limit (e.g., "8g"). Only used with hyperv isolation.
146+
[string]$Memory = '24g', # Docker memory limit (e.g., "8g"). Only used with hyperv isolation.
147147
[int]$Cpus = [Environment]::ProcessorCount, # Docker CPU limit. Only used with hyperv isolation.
148148
[string[]]$Mount, # Additional directories to mount from host (readonly by default, append :w for writable). Supports * and ** glob patterns.
149149
[string[]]$Env, # Additional environment variables to pass from host to container.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
Memory and CPU limits only apply to hyperv isolation.
7979
8080
.PARAMETER Memory
81-
Docker memory limit (e.g., "8g"). Only used with hyperv isolation.
81+
Docker memory limit (e.g., "8g"). Only used with hyperv isolation. Defaults to 24g.
8282
8383
.PARAMETER Cpus
8484
Docker CPU limit. Defaults to the host processor count. Only used with hyperv isolation.
@@ -143,7 +143,7 @@ param(
143143
[string]$RegistryImage, # Use a pre-built image from a registry, skipping Dockerfile build entirely.
144144
[switch]$NoInit, # Do not generate or call Init.g.ps1 (skips git config, safe.directory, etc).
145145
[string]$Isolation = 'hyperv', # Docker isolation mode (process or hyperv). Memory/CPU limits only apply to hyperv.
146-
[string]$Memory = '32g', # Docker memory limit (e.g., "8g"). Only used with hyperv isolation.
146+
[string]$Memory = '24g', # Docker memory limit (e.g., "8g"). Only used with hyperv isolation.
147147
[int]$Cpus = [Environment]::ProcessorCount, # Docker CPU limit. Only used with hyperv isolation.
148148
[string[]]$Mount, # Additional directories to mount from host (readonly by default, append :w for writable). Supports * and ** glob patterns.
149149
[string[]]$Env, # Additional environment variables to pass from host to container.

0 commit comments

Comments
 (0)