Skip to content

Commit

Permalink
updated Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
waldo1001 committed Oct 10, 2018
1 parent 0e0be33 commit 55ec3ce
Show file tree
Hide file tree
Showing 18 changed files with 183 additions and 54 deletions.
@@ -1,8 +1,8 @@
. '.\_Settings.ps1'

$ReleaseSettings.Product = 'Food'
$ReleaseSettings.LocalPath = "C:\temp\Food60301ModifiedDEV.txt"
$ReleaseSettings.ProductVersion = 'IF6.3.1'
$ReleaseSettings.Product = 'Distri'
$ReleaseSettings.LocalPath = "C:\temp\DistriRelease\Release 11.2\DistriDEV.txt"
$ReleaseSettings.ProductVersion = 'I11.2'
$ReleaseSettings.ModifiedOnly = $true

switch ($ReleaseSettings.Product) {
Expand Down Expand Up @@ -34,4 +34,4 @@ Release-RDHNAVApplicationObjects `
$ReleaseResult.VersionlistCompare |
Format-Table -AutoSize

Start-Process (get-item $ReleaseResult.LocalPath).directory
Start-Process $ReleaseResult.LocalPath
Expand Up @@ -5,19 +5,19 @@ $SecretSettings = Get-ObjectFromJSON (Join-Path $PSScriptRoot "_SecretSettings.j
$UpgradeSettings = @{}

#General
$UpgradeSettings.UpgradeName = 'iFactoFood6032'
$UpgradeSettings.UpgradeName = 'DistriBC'

$UpgradeSettings.OriginalVersion = 'Foodware602'
$UpgradeSettings.ModifiedVersion = 'Foodware603'
$UpgradeSettings.TargetVersion = 'iFactoFood603'
$UpgradeSettings.OriginalVersion = 'NAV2018CU8BE'
$UpgradeSettings.ModifiedVersion = 'Distri112'
$UpgradeSettings.TargetVersion = '13.0.24630.0-be'

$UpgradeSettings.LocalOriginalFile = "$env:USERPROFILE\Dropbox\Dynamics NAV\ObjectLibrary\$($UpgradeSettings.OriginalVersion).zip"
$UpgradeSettings.LocalModifiedFile = "$env:USERPROFILE\Dropbox\Dynamics NAV\ObjectLibrary\$($UpgradeSettings.ModifiedVersion).zip"
$UpgradeSettings.LocalTargetFile = "$env:USERPROFILE\Dropbox\Dynamics NAV\ObjectLibrary\$($UpgradeSettings.TargetVersion).zip"

$UpgradeSettings.VersionListPrefixes = 'NAVW1', 'NAVBE', 'Test', 'SI', 'IB', 'IF' #Food
#$UpgradeSettings.VersionListPrefixes = 'NAVW1', 'NAVBE', 'Test', 'I' #Distri
$UpgradeSettings.AvoidConflictsForLanguages = 'NLB','FRB','ENU','NLD'
#$UpgradeSettings.VersionListPrefixes = 'NAVW1', 'NAVBE', 'Test', 'SI', 'IB', 'IF' #Food
$UpgradeSettings.VersionListPrefixes = 'NAVW1', 'NAVBE', 'Test', 'I' #Distri
$UpgradeSettings.AvoidConflictsForLanguages = $null #'NLB', 'FRB', 'ENU', 'NLD'

#Semi-fixed settings (scope within container)
$UpgradeSettings.UpgradeFolder = 'C:\ProgramData\NavContainerHelper\Upgrades' #locally in the container
Expand All @@ -39,7 +39,7 @@ $DockerHostSessionOption = New-PSSessionOption
$DockerHostUseSSL = $false

#ContainerSettings
$ContainerName = 'Upgrade'
$ContainerName = 'bconprem'
$ContainerUserName = 'waldo'
$ContainerPassword = ConvertTo-SecureString 'waldo1234' -AsPlainText -Force
$ContainerCredentials = New-Object System.Management.Automation.PSCredential ($ContainerUserName, $ContainerPassword)
Expand Down
2 changes: 1 addition & 1 deletion PSScripts/NAV Docker/RemoteDocker/waldocorevm/CleanApp.ps1
Expand Up @@ -9,7 +9,7 @@ $Containername = 'devpreview'
-DockerHostCredentials $DockerHostCredentials `
-DockerHostUseSSL:$DockerHostUseSSL `
-DockerHostSessionOption $DockerHostSessionOption `
-ContainerName $Containername
-ContainerName $Containernamein
#>

Clean-RDHCustomNAVApps `
Expand Down
@@ -1,11 +1,12 @@
. (Join-Path $PSScriptRoot '.\_Settings.ps1')

$Containername = 'navserver'
$Containername = 'bccurrent'
$ContainerAdditionalParameters += "--ip 172.21.31.3"

$ContainerDockerImage = 'microsoft/bcsandbox:base'
$ContainerAlwaysPull = $true
$enableSymbolLoading = $true
#$SecretSettings.containerLicenseFile = 'c:\programdata\navcontainerhelper\NAV2018License.flf'

New-RDHNAVContainer `
-DockerHost $DockerHost `
Expand Down
@@ -1,11 +1,13 @@
. (Join-Path $PSScriptRoot '.\_Settings.ps1')

$Containername = 'devpreview'
$Containername = 'bcdaily'
$ContainerAdditionalParameters += "--ip 172.21.31.4"

$ContainerDockerImage = 'bcinsider.azurecr.io/bcsandbox-master:base'
$ContainerAlwaysPull = $true
$enableSymbolLoading = $true
$enableSymbolLoading = $false
#$SecretSettings.containerLicenseFile = 'c:\programdata\navcontainerhelper\NAV2018License.flf'


New-RDHNAVContainer `
-DockerHost $DockerHost `
Expand Down
27 changes: 27 additions & 0 deletions PSScripts/NAV Docker/RemoteDocker/waldocorevm/SetupBCNext.ps1
@@ -0,0 +1,27 @@
. (Join-Path $PSScriptRoot '.\_Settings.ps1')

$Containername = 'bcnext'
$ContainerAdditionalParameters += "--ip 172.21.31.15"

$ContainerDockerImage = 'bcinsider.azurecr.io/bcsandbox:base'
$ContainerAlwaysPull = $true
$enableSymbolLoading = $false
#$SecretSettings.containerLicenseFile = 'c:\programdata\navcontainerhelper\NAV2018License.flf'


New-RDHNAVContainer `
-DockerHost $DockerHost `
-DockerHostCredentials $DockerHostCredentials `
-DockerHostUseSSL:$DockerHostUseSSL `
-DockerHostSessionOption $DockerHostSessionOption `
-ContainerDockerImage $ContainerDockerImage `
-ContainerRegistryUserName $SecretSettings.containerRegistryUserName `
-ContainerRegistryPwd $SecretSettings.containerRegistryPassword `
-ContainerName $Containername `
-ContainerLicenseFile $SecretSettings.containerLicenseFile `
-ContainerCredential $ContainerCredential `
-ContainerAlwaysPull:$ContainerAlwaysPull `
-ContainerAdditionalParameters $ContainerAdditionalParameters `
-doNotExportObjectsToText `
-enableSymbolLoading:$enableSymbolLoading

27 changes: 27 additions & 0 deletions PSScripts/NAV Docker/RemoteDocker/waldocorevm/SetupBCOnPrem.ps1
@@ -0,0 +1,27 @@
. (Join-Path $PSScriptRoot '.\_Settings.ps1')

$Containername = 'bconprem'
$ContainerAdditionalParameters += "--ip 172.21.31.14"

$ContainerDockerImage = 'mcr.microsoft.com/businesscentral/onprem'
$ContainerAlwaysPull = $true
$enableSymbolLoading = $false
#$SecretSettings.containerLicenseFile = 'c:\programdata\navcontainerhelper\NAV2018License.flf'


New-RDHNAVContainer `
-DockerHost $DockerHost `
-DockerHostCredentials $DockerHostCredentials `
-DockerHostUseSSL:$DockerHostUseSSL `
-DockerHostSessionOption $DockerHostSessionOption `
-ContainerDockerImage $ContainerDockerImage `
-ContainerRegistryUserName $SecretSettings.containerRegistryUserName `
-ContainerRegistryPwd $SecretSettings.containerRegistryPassword `
-ContainerName $Containername `
-ContainerLicenseFile $SecretSettings.containerLicenseFile `
-ContainerCredential $ContainerCredential `
-ContainerAlwaysPull:$ContainerAlwaysPull `
-ContainerAdditionalParameters $ContainerAdditionalParameters `
-doNotExportObjectsToText `
-enableSymbolLoading:$enableSymbolLoading

Expand Up @@ -4,7 +4,7 @@ $Containername = 'nav2018'
$ContainerAdditionalParameters += "--ip 172.21.31.12"

#$ContainerDockerImage = 'microsoft/dynamics-nav:2018'
$ContainerDockerImage = 'microsoft/dynamics-nav:2018-be'
$ContainerDockerImage = 'microsoft/dynamics-nav:2018-cu5-be'
$ContainerAlwaysPull = $true
$enableSymbolLoading = $true

Expand Down
23 changes: 0 additions & 23 deletions PSScripts/NAV Docker/RemoteDocker/waldocorevm/SetupRBA.ps1

This file was deleted.

Expand Up @@ -8,4 +8,4 @@ Enter-PSSession `

break

Enter-NavContainer -containerName 'devpreview'
Enter-NavContainer -containerName 'bconprem'
@@ -1,13 +1,16 @@
. (Join-Path $PSScriptRoot '.\_Settings.ps1')

$Containername = 'navserver'
$Containername = 'bconprem'
$Path = 'C:\Temp\'
$filter = ''

Export-RDHNAVApplicationObjects `
-DockerHost $DockerHost `
-DockerHostCredentials $DockerHostCredentials `
-DockerHostUseSSL:$DockerHostUseSSL `
-DockerHostSessionOption $DockerHostSessionOption `
-ContainerName $Containername `
-Path 'C:\Temp\' `
-filter 'Id=459'
-Path $Path `
-filter $filter

Start $Path
@@ -1,7 +1,8 @@
. (Join-Path $PSScriptRoot '.\_Settings.ps1')

$containerName = 'devpreview'
$Path = 'C:\Temp\Reports'
$Path = 'C:\Temp\DirectionsNA'
$filter = 'Type=3;Id=1..100'

$result = Export-RDHNAVApplicationObjectsAsAL `
-DockerHost $DockerHost `
Expand All @@ -10,7 +11,6 @@ $result = Export-RDHNAVApplicationObjectsAsAL `
-DockerHostSessionOption $DockerHostSessionOption `
-ContainerName $containerName `
-Path $Path `
-extensionStartId 50000 `
-filter 'Type=3' #All Reports
-filter $filter

start $result
@@ -0,0 +1,68 @@
. (Join-Path $PSScriptRoot '.\_Settings.ps1')

$ObjectsFolder = "C:\temp"
#$ContainerDockerImage = 'microsoft/bcsandbox:us'
$ContainerDockerImage = 'microsoft/dynamics-nav:2018-cu8'
#$ContainerDockerImage = 'bcinsider.azurecr.io/bcsandbox-master'
#$ContainerDockerImage = 'bcinsider.azurecr.io/bcsandbox'

#Fixed params
$ExportToBase = "$env:USERPROFILE\Dropbox (Personal)\Dynamics NAV\ObjectLibrary\"
switch ($true) {
($ContainerDockerImage.StartsWith('microsoft/bcsandbox')) {
$ExportTo = join-path $ExportToBase 'Business Central (Current)'
break
}
($ContainerDockerImage.StartsWith('bcinsider.azurecr.io/bcsandbox-master')) {
$ExportTo = join-path $ExportToBase 'Business Central (Insider Daily Build)'
break
}
($ContainerDockerImage.StartsWith('bcinsider.azurecr.io/bcsandbox')) {
$ExportTo = join-path $ExportToBase 'Business Central (Insider Next)'
break
}
($ContainerDockerImage.Contains('2018')) {
$ExportTo = join-path $ExportToBase 'NAV2018'
break
}
($ContainerDockerImage.StartsWith('2017')) {
$ExportTo = join-path $ExportToBase 'NAV2017'
break
}

}

$ModuleToolAPIPath = "$env:USERPROFILE\Dropbox\GitHub\Waldo.Model.Tools\ReVision.Model.Tools Library - laptop"

$Containername = 'temponly'
$ContainerAdditionalParameters += "--ip 172.21.31.13"
$ContainerAlwaysPull = $true

New-RDHNAVContainer `
-DockerHost $DockerHost `
-DockerHostCredentials $DockerHostCredentials `
-DockerHostUseSSL:$DockerHostUseSSL `
-DockerHostSessionOption $DockerHostSessionOption `
-ContainerDockerImage $ContainerDockerImage `
-ContainerName $Containername `
-ContainerLicenseFile $SecretSettings.containerLicenseFile `
-ContainerCredential $ContainerCredential `
-ContainerAlwaysPull:$ContainerAlwaysPull `
-ContainerAdditionalParameters $ContainerAdditionalParameters `
-doNotExportObjectsToText

$ObjectFile =
Export-RDHNAVApplicationObjects `
-DockerHost $DockerHost `
-DockerHostCredentials $DockerHostCredentials `
-DockerHostUseSSL:$DockerHostUseSSL `
-DockerHostSessionOption $DockerHostSessionOption `
-ContainerName $Containername `
-Path $ObjectsFolder

Remove-RDHNAVContainer `
-DockerHost $DockerHost `
-DockerHostCredentials $DockerHostCredentials `
-DockerHostUseSSL:$DockerHostUseSSL `
-DockerHostSessionOption $DockerHostSessionOption `
-ContainerName $Containername
Expand Up @@ -3,22 +3,22 @@
$ObjectsFolder = "C:\temp"
#$ContainerDockerImage = 'microsoft/bcsandbox:us'
#$ContainerDockerImage = 'microsoft/dynamics-nav:2018-be'
$ContainerDockerImage = 'bcinsider.azurecr.io/bcsandbox-master'
#$ContainerDockerImage = 'bcinsider.azurecr.io/bcsandbox'
#$ContainerDockerImage = 'bcinsider.azurecr.io/bcsandbox-master'
$ContainerDockerImage = 'bcinsider.azurecr.io/bcsandbox'

#Fixed params
$ExportToBase = "$env:USERPROFILE\Dropbox (Personal)\GitHub\Blogs\blog.CALAnalysis\Published Events\"
switch ($true) {
($ContainerDockerImage.StartsWith('microsoft/bcsandbox')) {
$ExportTo = join-path $ExportToBase 'Business Central (Current)'
$ExportTo = join-path $ExportToBase 'Business Central'
break
}
($ContainerDockerImage.StartsWith('bcinsider.azurecr.io/bcsandbox-master')) {
$ExportTo = join-path $ExportToBase 'Business Central (Insider Daily Build)'
break
}
($ContainerDockerImage.StartsWith('bcinsider.azurecr.io/bcsandbox')) {
$ExportTo = join-path $ExportToBase 'Business Central (Insider Next)'
$ExportTo = join-path $ExportToBase 'Business Central'
break
}
($ContainerDockerImage.Contains('2018')) {
Expand Down
Expand Up @@ -3,4 +3,6 @@

Start-VM -Name $DockerHost

#Restart-VM -Name $DockerHost


Expand Up @@ -5,6 +5,7 @@ Create an isolated environment in which we will convert the code

$ContainerName = 'tempdev'
$imageName = 'microsoft/dynamics-nav:11.0.20723.0-finus'
#$imageName = 'microsoft/bcsandbox:base'
$licenseFile = 'C:\ProgramData\NavContainerHelper\NAV2018License.flf'
$DeltaPath = 'C:\ProgramData\NavContainerHelper\Migration\DELTA'

Expand All @@ -24,5 +25,5 @@ New-NavContainer `
-imageName $imageName `
-updateHosts `
-additionalParameters $additionalParameters `
-accept_outdated
-accept_outdated

Expand Up @@ -3,7 +3,7 @@ STEP 3
Apply Delta to database & export as new syntax
#>

$ContainerName = 'tempdev'
$ContainerName = 'bconprem'
$DeltaPath = 'C:\ProgramData\NavContainerHelper\Migration\DELTA'

$UserName = 'sa'
Expand Down
23 changes: 22 additions & 1 deletion PSScripts/NAV Languages/TestBasics.ps1
@@ -1 +1,22 @@
#Step 1: create DEV Hash$AnalyzeLanguages = 'NLB', 'FRB', 'ENU'$DEVLang = 'ENU'$DEVHash = Export-NAVApplicationObjectLanguageHash ` -Source C:\Temp\ObjectsWithLanguages.txt ` -DestinationXML C:\Temp\DevHash.xml ` -LanguageId $AnalyzeLanguages ` -DevelopmentLanguageId $DEVLang ` -WorkingFolder C:\_WorkingFolder $ObjectLanguages = Get-NAVApplicationObjectLanguage ` -Source C:\Temp\ObjectsWithLanguages.txt ` -WorkingFolder c:\_WorkingFolder ` -LanguageId $AnalyzeLanguages ` -DevelopmentTranslations $DEVHash ` -NotOnlyMissingTranslationscls$ObjectLanguages | ogv
#Step 1: create DEV Hash
$AnalyzeLanguages = 'NLB', 'FRB', 'ENU'
$DEVLang = 'ENU'

$DEVHash =
Export-NAVApplicationObjectLanguageHash `
-Source C:\Temp\ObjectsWithLanguages.txt `
-DestinationXML C:\Temp\DevHash.xml `
-LanguageId $AnalyzeLanguages `
-DevelopmentLanguageId $DEVLang `
-WorkingFolder C:\_WorkingFolder

$ObjectLanguages =
Get-NAVApplicationObjectLanguage `
-Source C:\Temp\ObjectsWithLanguages.txt `
-WorkingFolder c:\_WorkingFolder `
-LanguageId $AnalyzeLanguages `
-DevelopmentTranslations $DEVHash `
-NotOnlyMissingTranslations

cls
$ObjectLanguages | ogv

0 comments on commit 55ec3ce

Please sign in to comment.