Skip to content

Commit 6a2ffcc

Browse files
committed
Added in the copying of the .scwdp content to the docker asset image structure
1 parent 0502d7d commit 6a2ffcc

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,4 @@ MigrationBackup/
351351
Package/
352352
SAT/
353353
scwpd/
354+
Module/

Create-SitecoreModule-DockerAssetImage.ps1

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,31 @@ else {
147147
New-Item -ItemType Directory -Force -Path $toolsDirectory
148148
}
149149

150+
Write-Host "=================================================================================================================================="
151+
Write-Host "`n"
152+
Write-Host "START - [Copying over .scwdp contents to Sitecore module asset image structure]"
153+
Write-Host "`n"
154+
155+
# Copy content
156+
Copy-Item -Path "$extractSCwdpDirectory\Content\Website\*" -Destination $cmContentDirectory -PassThru -Recurse
157+
158+
# Copy dacpacs + rename
159+
if (Test-Path("$extractSCwdpDirectory\core.dacpac")) {
160+
Copy-Item -Path "$extractSCwdpDirectory\core.dacpac" -Destination $dbDirectory -PassThru
161+
Rename-Item -Path "$dbDirectory\core.dacpac" -NewName "Sitecore.Core.dacpac"
162+
}
163+
164+
if (Test-Path("$extractSCwdpDirectory\master.dacpac")) {
165+
Copy-Item -Path "$extractSCwdpDirectory\master.dacpac" -Destination $dbDirectory -PassThru
166+
Rename-Item -Path "$dbDirectory\master.dacpac" -NewName "Sitecore.Master.dacpac"
167+
}
168+
150169
Write-Host "=================================================================================================================================="
151170
Write-Host "`n"
152171
Write-Host "SUCCESS - Succesfully created the Docker Asset Image structure in directory $moduleDirectory" -ForegroundColor Green
153172
Write-Host "`n"
154173

155-
tree $moduleDirectory /a
174+
tree $moduleDirectory /f /a
156175

157176
Write-Host "`n"
158177
Write-Host "=================================================================================================================================="

0 commit comments

Comments
 (0)