Added config overrides.

This commit is contained in:
ravinsp
2022-06-11 19:55:49 +05:30
parent fe33f80d2a
commit ebd762628e
3 changed files with 20 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ $Network = "$($GlobalPrefix)_$($Cluster)_net"
$ContainerPrefix = "$($GlobalPrefix)_$($Cluster)_con"
$BundleMount = "$($VolumeMount)/contract_bundle"
$DeploymentContainerName = "$($GlobalPrefix)_$($Cluster)_deploymanager"
$ConfigOverridesFile = "$($GlobalPrefix)_overrides.cfg"
function DevKitContainer([string]$Mode, [string]$Name, [switch]$Detached, [switch]$AutoRemove, [switch]$MountSock, [switch]$MountVolume, [string]$Cmd) {
@@ -32,8 +33,9 @@ function DevKitContainer([string]$Mode, [string]$Name, [switch]$Detached, [switc
}
# Env variables.
$Command += " -e CLUSTER=$($Cluster) -e CLUSTER_SIZE=$($ClusterSize) -e VOLUME=$($Volume) -e NETWORK=$($Network)"
$Command += " -e CLUSTER=$($Cluster) -e CLUSTER_SIZE=$($ClusterSize) -e DEFAULT_NODE=$($DefaultNode) -e VOLUME=$($Volume) -e NETWORK=$($Network)"
$Command += " -e CONTAINER_PREFIX=$($ContainerPrefix) -e VOLUME_MOUNT=$($VolumeMount) -e BUNDLE_MOUNT=$($BundleMount) -e HOTPOCKET_IMAGE=$($HotPocketImage)"
$Command += " -e CONFIG_OVERRIDES_FILE=$($ConfigOverridesFile)"
$Command += " $($DevKitImage)"
if ($Cmd) {