From 28c709801ae0e784634d8b11fee26855e8d236bf Mon Sep 17 00:00:00 2001 From: Bart Plasmeijer Date: Tue, 22 Oct 2019 16:30:42 +0200 Subject: [PATCH 1/4] added: XM JSS and XP JSS --- IMAGES.md | Bin 15173 -> 34844 bytes README.md | Bin 5624 -> 11518 bytes Update-Readme.ps1 => Update-Documentation.ps1 | 0 sitecore-packages.json | 18 ++++- .../9.2.x/sitecore-xm-jss-sqldev/Dockerfile | 21 +++++ .../Extract-Databases.ps1 | 35 +++++++++ .../Install-Databases.ps1 | 61 +++++++++++++++ .../9.2.x/sitecore-xm-jss-sqldev/build.json | 14 ++++ windows/9.2.x/sitecore-xm-jss/Dockerfile | 29 +++++++ windows/9.2.x/sitecore-xm-jss/build.json | 25 ++++++ .../9.2.x/sitecore-xp-jss-sqldev/Dockerfile | 22 ++++++ .../Extract-Databases.ps1 | 35 +++++++++ .../Install-Databases.ps1 | 61 +++++++++++++++ .../9.2.x/sitecore-xp-jss-sqldev/build.json | 14 ++++ windows/9.2.x/sitecore-xp-jss/Dockerfile | 22 ++++++ windows/9.2.x/sitecore-xp-jss/build.json | 25 ++++++ windows/tests/9.x.x/docker-compose-jss.xp.yml | 73 ++++++++++++++++++ windows/tests/9.x.x/docker-compose.jss.xm.yml | 46 +++++++++++ windows/tests/9.x.x/docker-compose.spe.xm.yml | 4 +- 19 files changed, 502 insertions(+), 3 deletions(-) rename Update-Readme.ps1 => Update-Documentation.ps1 (100%) create mode 100644 windows/9.2.x/sitecore-xm-jss-sqldev/Dockerfile create mode 100644 windows/9.2.x/sitecore-xm-jss-sqldev/Extract-Databases.ps1 create mode 100644 windows/9.2.x/sitecore-xm-jss-sqldev/Install-Databases.ps1 create mode 100644 windows/9.2.x/sitecore-xm-jss-sqldev/build.json create mode 100644 windows/9.2.x/sitecore-xm-jss/Dockerfile create mode 100644 windows/9.2.x/sitecore-xm-jss/build.json create mode 100644 windows/9.2.x/sitecore-xp-jss-sqldev/Dockerfile create mode 100644 windows/9.2.x/sitecore-xp-jss-sqldev/Extract-Databases.ps1 create mode 100644 windows/9.2.x/sitecore-xp-jss-sqldev/Install-Databases.ps1 create mode 100644 windows/9.2.x/sitecore-xp-jss-sqldev/build.json create mode 100644 windows/9.2.x/sitecore-xp-jss/Dockerfile create mode 100644 windows/9.2.x/sitecore-xp-jss/build.json create mode 100644 windows/tests/9.x.x/docker-compose-jss.xp.yml create mode 100644 windows/tests/9.x.x/docker-compose.jss.xm.yml diff --git a/IMAGES.md b/IMAGES.md index d844be722f830619ca8c520a8da478b6082be7c2..a8a5107cfd179065cf5899de960146df43f8d587 100644 GIT binary patch literal 34844 zcmeHQOK%)E4A!|o|HC4=G>45H_mISg0)1Qx6e!RZ?ZF5T*V#C3{pzlhxIodL-j)=X zmb9Z8Ni(EIHj0Il*?ExEr;ik=(a!w)&ttPNUz&6HEX-uc{gSm=y+nKk)-der1zj9 zN6Pu#*(3w4{Q|E12J~E8Z70x@8~FAH_TJc5p?$~p*uu7RZGPV#{|M4<%sV*#H+(j* zy@ow_6t8^;->#q)r?7>`Q3|%1j;+j}b`Q320sF7uiiPK+E33A9Dp6f-)~b0`}y_p7p{0 zOGloWmuBC5zCG{t7MmQ&htTiNu4Pom(y;v3py3GEdFaqh&X-h1eSM#Ah>m0-c9(Y6J2PKtD2&_Qu#-k)*4!J*;Ihc7CB9rJbfZFujF5cPQ)Bix61%%`-0cYo4PA zuzDKq0kl_^-Hd?ao;J(78r#KMZ(RHhM%>LTtRK?cVo#90lB{On%hYo`YCHDWTgq}`Z| z_DN#P`KdpvqRZ--#uix}vr_|keO7ZzT4goar-Q9_rs1${Gt-dAR-dnJ@>G(ax-~M6 z$t~8%7h)rq-ufM0HAZ9L9P4)2g8$d+xYe++6;9Mcj8=JnrB=9<=Ok=Pjh;(cFBPp~ zo>rD0GAgA#)H42(=<<4j>FaTFksi|666$294%TjtK!?o^W2dP-Z1wK2xb|PcN~iU9 zzHiEEa9VS^D>uY6CV%Woa9oi(G}nZYaRck-uyq<7Ez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!4ndFMM<90-${cG??xCPBau0QqvBw*$ z9H;t-H(oK*!P+I{2CTP)EcMaAI(dZG{03m9J{sOG(rvw=6ZGg2olY`#doPAQym~Py z7jK|XOM*RuB(Z6kaA8FL!ixaVYAH5Z^CAl+)O8Ju;Qw(6W*pXdZRB}uWA#=hLtNi9 z9>4HOXossN3(P}7Kghi;wR9x+a~E%5=|yL&rcOmBUZnIdp5Ow73T+#peS6c3s@wTw z$`2~YPJpID44@$u3K8o9t6dA-#|BeTnPkIvrBoV@1A;}mT$t!wYy4sOpsfZP{#p2xl>rr(-sL|4lPoH- z{7ph}!dKt+B)&im43A(-)sTeiRKBQ~5QiUAg*v>+f;5M}nqL7Uhx-eR)4O&v0Lb*) zH-zW6#T4|p>>(g8l*V|0X;b0X<86h&@4Vn`^=X`NiWjX37*<&q9C3nJpY`?|8bEBS zhXNE+y|V#qoef-2w<%;=@>>BEq_K!OdnReJI%2pnB-C&wL^Q)K=hrrQ3oA_BtOWF( zJ}UwGpVN-#*R z^2@<4F*JNN#>GDE>v%JGo{=-?)}PmDfr(0`_c*`6kc5X;DmxnV_C|`tt;h zmPz6#K^haJhlI0Z2MM~`iE^hY@#Fp^jaMfNpw0CuD@6e=eiS^;kD zJJO7SHDn1}p#4!BIB%jmXamQI+EY66L=b*BM?OB=(Hz}Di)OP0_=&^RikM zq98_tVK51(afl2lMeF-WWPm2e$mk?#IF6X%gH3QOGB%-WWOR}v8jw;aGxSC9AEfNB AH~;_u diff --git a/README.md b/README.md index a9ae83a376c2e2272dc76cb8e54d80a3a3bfd760..45bd8d51a884f645545f2b117293d2e4a392dc18 100644 GIT binary patch literal 11518 zcmb`NYfl`>6^83`r2L0oAj;ax%-Fk86r){77+9MXHpGnMSg;DW0gns}VFm-y{`MsA zQ)doUUEN%4R-<9MtLt*E@3}Pp`|oV1!rL$ir(qPvVHhU*JquSF9fbq^-H2m@uouS% z8d=iSUihRnXSy4P_4Mt6U{o)U&iciqTiWp%{O5) ztZKhK?RBDOgE;q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KwtUCJ4&0$clMT(PWSa0U_6EuJ*8e2^@6xnL# zv$uBI4sS4vK#)oBNg2T^KX9iQx|)p7>EKG^WD}XjG8 z2&8M(RhSBmYO_TmquF_PTD&X&_aEa38Ha|^V5L-{|5cgJEl@aZG6Bo!#I~jfkt!A> zG`s4b_io0$Z^N_6<%}YAkJ#xh&0fL0yF2)sb2 zq-wcjNnfZT5JzC;8{`BCJ{AVFJ0p*uSbZmQQ}QS{h0Cy5 zKqnv)K^rOWYwI~{KX(O3sj#pPX~T7UT}mQg#wtVulFxz_#+^B0{6s?3aX>j?5-KT` z;Zfmi*?SV{$krjV*cj5+HKT=&LWG@64wORwH+@hFQrKkp@Pk~6VB2iGaud0^&^tQ# zL#xEI53h#fageHYHqzksX2}yxWWGfu430`hrw4&6I#(*zF8gHDr*oE`k|~;ND#9Hg zSTVZb1g>7pKxTz|f)79Td)?37srK0O2RjuwzRc&iv;Aru7+A(wNx?jxE=5wP(Ib)( z=Zy`Sb5^*cIy>9pQ$8#%v?Wb272}X~lg2|C49i>G;4P7HN5si(WdTon7e-+dyW1g| z|FRX7x8G=CaCp@_8~5x@uS*vL{z2nm@4Wx}Em&&!=>xh4u6<6-{(>p5N*56~C!5Mq za#D%OyYls!#PR7PM>bV^EM&ONpBu6&qIk{gElMupo}O{#@NK{BK+Sg3K0Ay`%-f!$kjlO;BU0Z_tS;0AbGcA+R zXDRl9KTXKAc}U*x8Xwx6qpk&&B>~=&A-I7P!AZ5jhk)T&I#pUKT(HG6b!XuV=$0)_ zhK=WZnD&zgeJ{ZlRwj?osksr(?8T$tkR5U<-e15>B~B+lvv*;|pXTxlmoY-yPrHR{jSErhgRx diff --git a/Update-Readme.ps1 b/Update-Documentation.ps1 similarity index 100% rename from Update-Readme.ps1 rename to Update-Documentation.ps1 diff --git a/sitecore-packages.json b/sitecore-packages.json index 8e142b8e2..aaf630e0a 100644 --- a/sitecore-packages.json +++ b/sitecore-packages.json @@ -190,7 +190,7 @@ "Sitecore Experience Accelerator XM 1.8.1 rev. 190319 for 9.1.1.scwdp.zip": { "description": "Sitecore Experience Accelerator 1.8 Update-1", "url": "https://dev.sitecore.net/~/media/F8CFFFD23CD54178B5749B0ECACB5813.ashx" - }, + }, "Sitecore Experience Accelerator XM 1.8.1 rev. 190319 for 9.1.1 CD.scwdp.zip": { "description": "Sitecore Experience Accelerator 1.8 Update-1", "url": "https://dev.sitecore.net/~/media/768039F8BCB24FB5A78AA99AD4391A20.ashx" @@ -294,5 +294,21 @@ "Web Forms for Marketers 9.0 rev. 180503.zip": { "description": "Web Forms for Marketers 9.0 Update-2", "url": "https://dev.sitecore.net/~/media/3BFEB7C427D040178E619522EA272ECC.ashx" + }, + "Sitecore JavaScript Services Server for Sitecore 9.2 XM 12.0.0 rev. 190522 CD.scwdp.zip": { + "description": "Sitecore JavaScript Services Server CD WDP for Sitecore 9.2 XM", + "url": "https://dev.sitecore.net/~/media/AEB49B787A534166A6C7D6B377367776.ashx" + }, + "Sitecore JavaScript Services Server for Sitecore 9.2 XP 12.0.0 rev. 190522 CD.scwdp.zip": { + "description": "Sitecore JavaScript Services Server CD WDP for Sitecore 9.2 XP", + "url": "https://dev.sitecore.net/~/media/187F48001A174051A7B085377838295F.ashx" + }, + "Sitecore JavaScript Services Server for Sitecore 9.2 XM 12.0.0 rev. 190522.scwdp.zip": { + "description": "Sitecore JavaScript Services Server WDP for Sitecore 9.2 XM", + "url": "https://dev.sitecore.net/~/media/305523FA736948C9855A8B0539FF1680.ashx" + }, + "Sitecore JavaScript Services Server for Sitecore 9.2 XP 12.0.0 rev. 190522.scwdp.zip": { + "description": "Sitecore JavaScript Services Server WDP for Sitecore 9.2 XP", + "url": "https://dev.sitecore.net/~/media/1D5D53DE1F4B43E8B3D70E0D0EE40A5D.ashx" } } \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xm-jss-sqldev/Dockerfile b/windows/9.2.x/sitecore-xm-jss-sqldev/Dockerfile new file mode 100644 index 000000000..d961bf35b --- /dev/null +++ b/windows/9.2.x/sitecore-xm-jss-sqldev/Dockerfile @@ -0,0 +1,21 @@ +# escape=` +ARG BASE_IMAGE +ARG ASSETS_IMAGE + +FROM $ASSETS_IMAGE as assets +FROM $BASE_IMAGE as build + +ARG ASSETS_USE_WDP + +ENV INSTALL_PATH='C:\\install\\' ` + INSTALL_MODULE_PATH='C:\\install-module\\' ` + DATA_PATH='C:\\data\\' ` + TEMP_PATH='c:\\temp' + +COPY --from=assets ["${ASSETS_USE_WDP}", "${INSTALL_MODULE_PATH}"] +COPY . ${INSTALL_MODULE_PATH} + +RUN & (Join-Path $env:INSTALL_MODULE_PATH "\\Extract-Databases.ps1") -Path $env:INSTALL_MODULE_PATH; ` + & (Join-Path $env:INSTALL_MODULE_PATH "\\Install-Databases.ps1") -InstallPath $env:INSTALL_PATH -DataPath $env:DATA_PATH -ModulePath $env:INSTALL_MODULE_PATH -DatabasePrefix Sitecore; ` + Get-ChildItem -Path $env:INSTALL_PATH -Exclude "*.mdf", "*.ldf" | Remove-Item -Force; ` + Get-ChildItem -Path $env:INSTALL_MODULE_PATH | Remove-Item -Force; \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xm-jss-sqldev/Extract-Databases.ps1 b/windows/9.2.x/sitecore-xm-jss-sqldev/Extract-Databases.ps1 new file mode 100644 index 000000000..9b7b11d7c --- /dev/null +++ b/windows/9.2.x/sitecore-xm-jss-sqldev/Extract-Databases.ps1 @@ -0,0 +1,35 @@ +[CmdletBinding()] +param( + [Parameter(Mandatory = $true)] + [ValidateScript( { Test-Path $_ -PathType 'Container' })] + [string]$Path +) + +Add-Type -Assembly "System.IO.Compression" +Add-Type -Assembly "System.IO.Compression.FileSystem" + +Get-ChildItem -Path $Path -Filter "*.zip" | ForEach-Object { + $zipPath = $_.FullName + + try + { + $stream = New-Object IO.FileStream($zipPath, [IO.FileMode]::Open) + $zip = New-Object IO.Compression.ZipArchive($stream, [IO.Compression.ZipArchiveMode]::Read) + + ($zip.Entries | Where-Object { $_.FullName -like "*.dacpac" }) | Foreach-Object { + [IO.Compression.ZipFileExtensions]::ExtractToFile($_, (Join-Path $Path $_.Name), $true) + } + } + finally + { + if ($zip -ne $null) + { + $zip.Dispose() + } + + if ($stream -ne $null) + { + $stream.Dispose() + } + } +} \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xm-jss-sqldev/Install-Databases.ps1 b/windows/9.2.x/sitecore-xm-jss-sqldev/Install-Databases.ps1 new file mode 100644 index 000000000..d9ef08c20 --- /dev/null +++ b/windows/9.2.x/sitecore-xm-jss-sqldev/Install-Databases.ps1 @@ -0,0 +1,61 @@ +[CmdletBinding()] +param( + [Parameter(Mandatory = $true)] + [ValidateScript( { Test-Path $_ -PathType 'Container' })] + [string]$InstallPath, + [Parameter(Mandatory = $true)] + [ValidateScript( { Test-Path $_ -PathType 'Container' })] + [string]$DataPath, + [Parameter(Mandatory = $true)] + [ValidateScript( { Test-Path $_ -PathType 'Container' })] + [string]$ModulePath, + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string]$DatabasePrefix +) + +[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null + +$server = New-Object Microsoft.SqlServer.Management.Smo.Server($env:COMPUTERNAME) +$server.Properties["DefaultFile"].Value = $InstallPath +$server.Properties["DefaultLog"].Value = $InstallPath +$server.Alter() + +$sqlPackageExePath = Get-Item "C:\Program Files\Microsoft SQL Server\*\DAC\bin\SqlPackage.exe" | Select-Object -Last 1 -Property FullName -ExpandProperty FullName + +# attach +Get-ChildItem -Path $InstallPath -Filter "*.mdf" | ForEach-Object { + $databaseName = $_.BaseName.Replace("_Primary", "") + $mdfPath = $_.FullName + $ldfPath = $mdfPath.Replace(".mdf", ".ldf") + $sqlcmd = "IF EXISTS (SELECT 1 FROM SYS.DATABASES WHERE NAME = '$databaseName') BEGIN EXEC sp_detach_db [$databaseName] END;CREATE DATABASE [$databaseName] ON (FILENAME = N'$mdfPath'), (FILENAME = N'$ldfPath') FOR ATTACH;" + + Write-Host "### Attaching '$databaseName'..." + + Invoke-Sqlcmd -Query $sqlcmd +} + +# do modules +$TextInfo = (Get-Culture).TextInfo +Get-ChildItem -Path $ModulePath -Include "core.dacpac", "master.dacpac" -Recurse | ForEach-Object { + + $dacpacPath = $_.FullName + $databaseName = "$DatabasePrefix`." + $TextInfo.ToTitleCase($_.BaseName) + + # Install + & $sqlPackageExePath /a:Publish /sf:$dacpacPath /tdn:$databaseName /tsn:$env:COMPUTERNAME /q +} + +# detach DB +Get-ChildItem -Path $InstallPath -Filter "*.mdf" | ForEach-Object { + $databaseName = $_.BaseName.Replace("_Primary", "") + + Write-Host "### Detach: $databaseName" + + Invoke-Sqlcmd -Query "EXEC MASTER.dbo.sp_detach_db @dbname = N'$databaseName', @keepfulltextindexfile = N'false'" +} + +$server = New-Object Microsoft.SqlServer.Management.Smo.Server($env:COMPUTERNAME) +$server.Properties["DefaultFile"].Value = $DataPath +$server.Properties["DefaultLog"].Value = $DataPath +$server.Alter() \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xm-jss-sqldev/build.json b/windows/9.2.x/sitecore-xm-jss-sqldev/build.json new file mode 100644 index 000000000..127b0407a --- /dev/null +++ b/windows/9.2.x/sitecore-xm-jss-sqldev/build.json @@ -0,0 +1,14 @@ +{ + "tags": [ + { + "tag": "sitecore-xm-jss-sqldev:9.2.0-windowsservercore-${windowsservercore_version}", + "build-options": [ + "--memory 4GB", + "--build-arg BASE_IMAGE=sitecore-xm-sqldev:9.2.0-windowsservercore-${windowsservercore_version}", + "--build-arg ASSETS_IMAGE=sitecore-assets:9.2.0-nanoserver-${nanoserver_version}", + "--build-arg ASSETS_USE_WDP='C:\\packages\\Sitecore JavaScript Services Server for Sitecore 9.2 XM 12.0.0 rev. 190522.scwdp.zip'" + ] + } + ], + "sources": [] +} \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xm-jss/Dockerfile b/windows/9.2.x/sitecore-xm-jss/Dockerfile new file mode 100644 index 000000000..8f77f4573 --- /dev/null +++ b/windows/9.2.x/sitecore-xm-jss/Dockerfile @@ -0,0 +1,29 @@ +# escape=` +ARG BASE_IMAGE +ARG ASSETS_IMAGE + +FROM $ASSETS_IMAGE as assets +FROM $BASE_IMAGE as build + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +ARG ASSETS_USE_WDP + +COPY --from=assets ["${ASSETS_USE_WDP}", "C:\\temp\\packages\\"] + +# expand selected wdp into installation directory +RUN Expand-Archive -Path 'C:\\temp\\packages\\*.zip' -DestinationPath 'C:\\temp'; ` + Copy-Item -Path 'C:\\temp\\Content\\Website\\*' -Destination 'C:\\inetpub\\wwwroot' -Recurse -Force; + +# copy tools and transforms +COPY --from=assets ["C:\\install\\tools\\", "C:\\install\\tools\\"] + +# find transform files and do transformation +RUN (Get-ChildItem -Path 'C:\\inetpub\\wwwroot\\*.xdt' -Recurse ) | ForEach-Object { & 'C:\\install\\tools\\scripts\\Invoke-XdtTransform.ps1' -Path 'C:\\inetpub\\wwwroot\\web.config' -XdtPath $_.FullName -XdtDllPath 'C:\\install\\tools\\bin\\Microsoft.Web.XmlTransform.dll'; }; + +FROM $BASE_IMAGE + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +COPY --from=build ["C:\\inetpub\\wwwroot\\", "C:\\inetpub\\wwwroot\\"] + diff --git a/windows/9.2.x/sitecore-xm-jss/build.json b/windows/9.2.x/sitecore-xm-jss/build.json new file mode 100644 index 000000000..9faf6b465 --- /dev/null +++ b/windows/9.2.x/sitecore-xm-jss/build.json @@ -0,0 +1,25 @@ +{ + "tags": [ + { + "tag": "sitecore-xm-jss-cm:9.2.0-windowsservercore-${windowsservercore_version}", + "build-options": [ + "--build-arg BASE_IMAGE=sitecore-xm-cm:9.2.0-windowsservercore-${windowsservercore_version}", + "--build-arg ASSETS_IMAGE=sitecore-assets:9.2.0-nanoserver-${nanoserver_version}", + "--build-arg ASSETS_USE_WDP='C:\\packages\\Sitecore JavaScript Services Server for Sitecore 9.2 XM 12.0.0 rev. 190522.scwdp.zip'", + "--build-arg SC_ROLE_CONFIG_DIRECTORY=\\config\\cm", + "--build-arg SC_ROLE_DEFINE='ContentManagement, Indexing'" + ] + }, + { + "tag": "sitecore-xm-jss-cd:9.2.0-windowsservercore-${windowsservercore_version}", + "build-options": [ + "--build-arg BASE_IMAGE=sitecore-xm-cd:9.2.0-windowsservercore-${windowsservercore_version}", + "--build-arg ASSETS_IMAGE=sitecore-assets:9.2.0-nanoserver-${nanoserver_version}", + "--build-arg ASSETS_USE_WDP='C:\\packages\\Sitecore JavaScript Services Server for Sitecore 9.2 XM 12.0.0 rev. 190522 CD.scwdp.zip'", + "--build-arg SC_ROLE_CONFIG_DIRECTORY=.\\config\\cd", + "--build-arg SC_ROLE_DEFINE='ContentDelivery'" + ] + } + ], + "sources": [] +} \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xp-jss-sqldev/Dockerfile b/windows/9.2.x/sitecore-xp-jss-sqldev/Dockerfile new file mode 100644 index 000000000..80411e619 --- /dev/null +++ b/windows/9.2.x/sitecore-xp-jss-sqldev/Dockerfile @@ -0,0 +1,22 @@ +# escape=` +ARG BASE_IMAGE +ARG ASSETS_IMAGE + +FROM $ASSETS_IMAGE as assets +FROM $BASE_IMAGE as build + +ARG ASSETS_USE_WDP + +ENV INSTALL_PATH='C:\\install\\' ` + INSTALL_MODULE_PATH='C:\\install-module\\' ` + DATA_PATH='C:\\data\\' ` + TEMP_PATH='c:\\temp' + +COPY --from=assets ["${ASSETS_USE_WDP}", "${INSTALL_MODULE_PATH}"] + +COPY . ${INSTALL_MODULE_PATH} + +RUN & (Join-Path $env:INSTALL_MODULE_PATH "\\Extract-Databases.ps1") -Path $env:INSTALL_MODULE_PATH; ` + & (Join-Path $env:INSTALL_MODULE_PATH "\\Install-Databases.ps1") -InstallPath $env:INSTALL_PATH -DataPath $env:DATA_PATH -ModulePath $env:INSTALL_MODULE_PATH -DatabasePrefix Sitecore; ` + Get-ChildItem -Path $env:INSTALL_PATH -Exclude "*.mdf", "*.ldf" | Remove-Item -Force; ` + Get-ChildItem -Path $env:INSTALL_MODULE_PATH | Remove-Item -Force; \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xp-jss-sqldev/Extract-Databases.ps1 b/windows/9.2.x/sitecore-xp-jss-sqldev/Extract-Databases.ps1 new file mode 100644 index 000000000..9b7b11d7c --- /dev/null +++ b/windows/9.2.x/sitecore-xp-jss-sqldev/Extract-Databases.ps1 @@ -0,0 +1,35 @@ +[CmdletBinding()] +param( + [Parameter(Mandatory = $true)] + [ValidateScript( { Test-Path $_ -PathType 'Container' })] + [string]$Path +) + +Add-Type -Assembly "System.IO.Compression" +Add-Type -Assembly "System.IO.Compression.FileSystem" + +Get-ChildItem -Path $Path -Filter "*.zip" | ForEach-Object { + $zipPath = $_.FullName + + try + { + $stream = New-Object IO.FileStream($zipPath, [IO.FileMode]::Open) + $zip = New-Object IO.Compression.ZipArchive($stream, [IO.Compression.ZipArchiveMode]::Read) + + ($zip.Entries | Where-Object { $_.FullName -like "*.dacpac" }) | Foreach-Object { + [IO.Compression.ZipFileExtensions]::ExtractToFile($_, (Join-Path $Path $_.Name), $true) + } + } + finally + { + if ($zip -ne $null) + { + $zip.Dispose() + } + + if ($stream -ne $null) + { + $stream.Dispose() + } + } +} \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xp-jss-sqldev/Install-Databases.ps1 b/windows/9.2.x/sitecore-xp-jss-sqldev/Install-Databases.ps1 new file mode 100644 index 000000000..d9ef08c20 --- /dev/null +++ b/windows/9.2.x/sitecore-xp-jss-sqldev/Install-Databases.ps1 @@ -0,0 +1,61 @@ +[CmdletBinding()] +param( + [Parameter(Mandatory = $true)] + [ValidateScript( { Test-Path $_ -PathType 'Container' })] + [string]$InstallPath, + [Parameter(Mandatory = $true)] + [ValidateScript( { Test-Path $_ -PathType 'Container' })] + [string]$DataPath, + [Parameter(Mandatory = $true)] + [ValidateScript( { Test-Path $_ -PathType 'Container' })] + [string]$ModulePath, + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string]$DatabasePrefix +) + +[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null + +$server = New-Object Microsoft.SqlServer.Management.Smo.Server($env:COMPUTERNAME) +$server.Properties["DefaultFile"].Value = $InstallPath +$server.Properties["DefaultLog"].Value = $InstallPath +$server.Alter() + +$sqlPackageExePath = Get-Item "C:\Program Files\Microsoft SQL Server\*\DAC\bin\SqlPackage.exe" | Select-Object -Last 1 -Property FullName -ExpandProperty FullName + +# attach +Get-ChildItem -Path $InstallPath -Filter "*.mdf" | ForEach-Object { + $databaseName = $_.BaseName.Replace("_Primary", "") + $mdfPath = $_.FullName + $ldfPath = $mdfPath.Replace(".mdf", ".ldf") + $sqlcmd = "IF EXISTS (SELECT 1 FROM SYS.DATABASES WHERE NAME = '$databaseName') BEGIN EXEC sp_detach_db [$databaseName] END;CREATE DATABASE [$databaseName] ON (FILENAME = N'$mdfPath'), (FILENAME = N'$ldfPath') FOR ATTACH;" + + Write-Host "### Attaching '$databaseName'..." + + Invoke-Sqlcmd -Query $sqlcmd +} + +# do modules +$TextInfo = (Get-Culture).TextInfo +Get-ChildItem -Path $ModulePath -Include "core.dacpac", "master.dacpac" -Recurse | ForEach-Object { + + $dacpacPath = $_.FullName + $databaseName = "$DatabasePrefix`." + $TextInfo.ToTitleCase($_.BaseName) + + # Install + & $sqlPackageExePath /a:Publish /sf:$dacpacPath /tdn:$databaseName /tsn:$env:COMPUTERNAME /q +} + +# detach DB +Get-ChildItem -Path $InstallPath -Filter "*.mdf" | ForEach-Object { + $databaseName = $_.BaseName.Replace("_Primary", "") + + Write-Host "### Detach: $databaseName" + + Invoke-Sqlcmd -Query "EXEC MASTER.dbo.sp_detach_db @dbname = N'$databaseName', @keepfulltextindexfile = N'false'" +} + +$server = New-Object Microsoft.SqlServer.Management.Smo.Server($env:COMPUTERNAME) +$server.Properties["DefaultFile"].Value = $DataPath +$server.Properties["DefaultLog"].Value = $DataPath +$server.Alter() \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xp-jss-sqldev/build.json b/windows/9.2.x/sitecore-xp-jss-sqldev/build.json new file mode 100644 index 000000000..a31bff00b --- /dev/null +++ b/windows/9.2.x/sitecore-xp-jss-sqldev/build.json @@ -0,0 +1,14 @@ +{ + "tags": [ + { + "tag": "sitecore-xp-jss-sqldev:9.2.0-windowsservercore-${windowsservercore_version}", + "build-options": [ + "--memory 4GB", + "--build-arg BASE_IMAGE=sitecore-xp-sqldev:9.2.0-windowsservercore-${windowsservercore_version}", + "--build-arg ASSETS_IMAGE=sitecore-assets:9.2.0-nanoserver-${nanoserver_version}", + "--build-arg ASSETS_USE_WDP='C:\\packages\\Sitecore JavaScript Services Server for Sitecore 9.2 XP 12.0.0 rev. 190522.scwdp.zip'" + ] + } + ], + "sources": [] +} \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xp-jss/Dockerfile b/windows/9.2.x/sitecore-xp-jss/Dockerfile new file mode 100644 index 000000000..a9fcb1599 --- /dev/null +++ b/windows/9.2.x/sitecore-xp-jss/Dockerfile @@ -0,0 +1,22 @@ +# escape=` +ARG BASE_IMAGE +ARG ASSETS_IMAGE + +FROM $ASSETS_IMAGE as assets +FROM $BASE_IMAGE as build + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +ARG ASSETS_USE_WDP + +COPY --from=assets ["${ASSETS_USE_WDP}", "C:\\temp\\packages\\"] + +# expand selected wdp into installation directory +RUN Expand-Archive -Path 'C:\\temp\\packages\\*.zip' -DestinationPath 'C:\\temp'; ` + Copy-Item -Path 'C:\\temp\\Content\\Website\\*' -Destination 'C:\\inetpub\\wwwroot' -Recurse -Force; + +FROM $BASE_IMAGE + +SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] + +COPY --from=build ["C:\\inetpub\\wwwroot\\", "C:\\inetpub\\wwwroot\\"] \ No newline at end of file diff --git a/windows/9.2.x/sitecore-xp-jss/build.json b/windows/9.2.x/sitecore-xp-jss/build.json new file mode 100644 index 000000000..06dec1c51 --- /dev/null +++ b/windows/9.2.x/sitecore-xp-jss/build.json @@ -0,0 +1,25 @@ +{ + "tags": [ + { + "tag": "sitecore-xp-jss-standalone:9.2.0-windowsservercore-${windowsservercore_version}", + "build-options": [ + "--build-arg BASE_IMAGE=sitecore-xp-standalone:9.2.0-windowsservercore-${windowsservercore_version}", + "--build-arg ASSETS_IMAGE=sitecore-assets:9.2.0-nanoserver-${nanoserver_version}", + "--build-arg ASSETS_USE_WDP='C:\\packages\\Sitecore JavaScript Services Server for Sitecore 9.2 XP 12.0.0 rev. 190522.scwdp.zip'", + "--build-arg SC_ROLE_CONFIG_DIRECTORY=\\config\\cm", + "--build-arg SC_ROLE_DEFINE='ContentManagement, Indexing'" + ] + }, + { + "tag": "sitecore-xp-jss-cd:9.2.0-windowsservercore-${windowsservercore_version}", + "build-options": [ + "--build-arg BASE_IMAGE=sitecore-xp-cd:9.2.0-windowsservercore-${windowsservercore_version}", + "--build-arg ASSETS_IMAGE=sitecore-assets:9.2.0-nanoserver-${nanoserver_version}", + "--build-arg ASSETS_USE_WDP='C:\\packages\\Sitecore JavaScript Services Server for Sitecore 9.2 XP 12.0.0 rev. 190522 CD.scwdp.zip'", + "--build-arg SC_ROLE_CONFIG_DIRECTORY=\\config\\cd", + "--build-arg SC_ROLE_DEFINE='ContentDelivery'" + ] + } + ], + "sources": [] +} \ No newline at end of file diff --git a/windows/tests/9.x.x/docker-compose-jss.xp.yml b/windows/tests/9.x.x/docker-compose-jss.xp.yml new file mode 100644 index 000000000..f942bbf2a --- /dev/null +++ b/windows/tests/9.x.x/docker-compose-jss.xp.yml @@ -0,0 +1,73 @@ +version: '2.4' + +services: + + sql: + image: ${REGISTRY}sitecore-xp-jss-sqldev:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - .\data\sql:C:\Data + mem_limit: 2GB + ports: + - "44010:1433" + + solr: + image: ${REGISTRY}sitecore-xp-solr:${SITECORE_VERSION}-nanoserver-${NANOSERVER_VERSION} + volumes: + - .\data\solr:C:\Data + mem_limit: 1GB + ports: + - "44011:8983" + + xconnect: + image: ${REGISTRY}sitecore-xp-xconnect:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - ${LICENSE_PATH}:C:\license + - .\data\xconnect:C:\inetpub\wwwroot\App_Data\logs + mem_limit: 1GB + links: + - sql + - solr + + xconnect-automationengine: + image: ${REGISTRY}sitecore-xp-xconnect-automationengine:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - ${LICENSE_PATH}:C:\license + - .\data\xconnect-automationengine:C:\AutomationEngine\App_Data\logs + mem_limit: 500MB + links: + - sql + - xconnect + + xconnect-indexworker: + image: ${REGISTRY}sitecore-xp-xconnect-indexworker:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - ${LICENSE_PATH}:C:\license + - .\data\xconnect-indexworker:C:\IndexWorker\App_Data\logs + mem_limit: 500MB + links: + - sql + - solr + + cd: + image: ${REGISTRY}sitecore-xp-jss-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - ${LICENSE_PATH}:C:\license + - .\data\cd:C:\inetpub\wwwroot\App_Data\logs + ports: + - "44002:80" + links: + - sql + - solr + - xconnect + + cm: + image: ${REGISTRY}sitecore-xp-jss-standalone:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - ${LICENSE_PATH}:C:\license + - .\data\cm:C:\inetpub\wwwroot\App_Data\logs + ports: + - "44001:80" + links: + - sql + - solr + - xconnect diff --git a/windows/tests/9.x.x/docker-compose.jss.xm.yml b/windows/tests/9.x.x/docker-compose.jss.xm.yml new file mode 100644 index 000000000..f9bcbbace --- /dev/null +++ b/windows/tests/9.x.x/docker-compose.jss.xm.yml @@ -0,0 +1,46 @@ +version: '2.4' + +services: + + sql: + image: ${REGISTRY}sitecore-xm-jss-sqldev:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - .\data\sql:C:\Data + mem_limit: 2GB + ports: + - "44010:1433" + + solr: + image: ${REGISTRY}sitecore-xm-solr:${SITECORE_VERSION}-nanoserver-${NANOSERVER_VERSION} + volumes: + - .\data\solr:C:\Data + mem_limit: 1GB + ports: + - "44011:8983" + + # cd: + # image: ${REGISTRY}sitecore-xm-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + # volumes: + # - C:\license:C:\license + # - .\data\cd:C:\inetpub\wwwroot\App_Data\logs + # ports: + # - "44002:80" + # links: + # - sql + # - solr + + cm: + image: ${REGISTRY}sitecore-xm-jss-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - C:\license:C:\license + - .\data\cm:C:\inetpub\wwwroot\App_Data\logs + ports: + - "44001:80" + links: + - sql + - solr + +networks: + default: + external: + name: nat \ No newline at end of file diff --git a/windows/tests/9.x.x/docker-compose.spe.xm.yml b/windows/tests/9.x.x/docker-compose.spe.xm.yml index 4a965ffd6..f7ea64974 100644 --- a/windows/tests/9.x.x/docker-compose.spe.xm.yml +++ b/windows/tests/9.x.x/docker-compose.spe.xm.yml @@ -3,7 +3,7 @@ version: '2.4' services: sql: - image: ${REGISTRY}sitecore-spe-xm-sqldev:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + image: ${REGISTRY}sitecore-xm-spe-sqldev:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - .\data\sql:C:\Data mem_limit: 2GB @@ -30,7 +30,7 @@ services: # - solr cm: - image: ${REGISTRY}sitecore-spe-xm-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + image: ${REGISTRY}sitecore-xm-spe-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - C:\license:C:\license - .\data\cm:C:\inetpub\wwwroot\App_Data\logs From 5065cf14870cdb4ed9f0c954f3f82fc1601933fb Mon Sep 17 00:00:00 2001 From: Bart Plasmeijer Date: Tue, 22 Oct 2019 16:49:37 +0200 Subject: [PATCH 2/4] apply fixes --- windows/9.2.x/sitecore-xp-jss/build.json | 2 +- windows/tests/9.x.x/docker-compose.jss.xm.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/9.2.x/sitecore-xp-jss/build.json b/windows/9.2.x/sitecore-xp-jss/build.json index 06dec1c51..956a19538 100644 --- a/windows/9.2.x/sitecore-xp-jss/build.json +++ b/windows/9.2.x/sitecore-xp-jss/build.json @@ -7,7 +7,7 @@ "--build-arg ASSETS_IMAGE=sitecore-assets:9.2.0-nanoserver-${nanoserver_version}", "--build-arg ASSETS_USE_WDP='C:\\packages\\Sitecore JavaScript Services Server for Sitecore 9.2 XP 12.0.0 rev. 190522.scwdp.zip'", "--build-arg SC_ROLE_CONFIG_DIRECTORY=\\config\\cm", - "--build-arg SC_ROLE_DEFINE='ContentManagement, Indexing'" + "--build-arg SC_ROLE_DEFINE='Standalone'" ] }, { diff --git a/windows/tests/9.x.x/docker-compose.jss.xm.yml b/windows/tests/9.x.x/docker-compose.jss.xm.yml index f9bcbbace..2e6fc777b 100644 --- a/windows/tests/9.x.x/docker-compose.jss.xm.yml +++ b/windows/tests/9.x.x/docker-compose.jss.xm.yml @@ -19,7 +19,7 @@ services: - "44011:8983" # cd: - # image: ${REGISTRY}sitecore-xm-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + # image: ${REGISTRY}sitecore-xm-jss-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} # volumes: # - C:\license:C:\license # - .\data\cd:C:\inetpub\wwwroot\App_Data\logs From 7271a253a6f695bb6c08cb10f21f7f5bb4188c8e Mon Sep 17 00:00:00 2001 From: Bart Plasmeijer Date: Tue, 22 Oct 2019 16:57:30 +0200 Subject: [PATCH 3/4] uncommented CDs from compose files --- windows/tests/9.x.x/docker-compose.jss.xm.yml | 20 ++++++++--------- windows/tests/9.x.x/docker-compose.spe.xm.yml | 20 ++++++++--------- windows/tests/9.x.x/docker-compose.sxa.xm.yml | 20 ++++++++--------- windows/tests/9.x.x/docker-compose.sxa.xp.yml | 22 +++++++++---------- 4 files changed, 41 insertions(+), 41 deletions(-) diff --git a/windows/tests/9.x.x/docker-compose.jss.xm.yml b/windows/tests/9.x.x/docker-compose.jss.xm.yml index 2e6fc777b..d04322144 100644 --- a/windows/tests/9.x.x/docker-compose.jss.xm.yml +++ b/windows/tests/9.x.x/docker-compose.jss.xm.yml @@ -18,16 +18,16 @@ services: ports: - "44011:8983" - # cd: - # image: ${REGISTRY}sitecore-xm-jss-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} - # volumes: - # - C:\license:C:\license - # - .\data\cd:C:\inetpub\wwwroot\App_Data\logs - # ports: - # - "44002:80" - # links: - # - sql - # - solr + cd: + image: ${REGISTRY}sitecore-xm-jss-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - C:\license:C:\license + - .\data\cd:C:\inetpub\wwwroot\App_Data\logs + ports: + - "44002:80" + links: + - sql + - solr cm: image: ${REGISTRY}sitecore-xm-jss-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} diff --git a/windows/tests/9.x.x/docker-compose.spe.xm.yml b/windows/tests/9.x.x/docker-compose.spe.xm.yml index f7ea64974..e7ffb71ed 100644 --- a/windows/tests/9.x.x/docker-compose.spe.xm.yml +++ b/windows/tests/9.x.x/docker-compose.spe.xm.yml @@ -18,16 +18,16 @@ services: ports: - "44011:8983" - # cd: - # image: ${REGISTRY}sitecore-xm-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} - # volumes: - # - C:\license:C:\license - # - .\data\cd:C:\inetpub\wwwroot\App_Data\logs - # ports: - # - "44002:80" - # links: - # - sql - # - solr + cd: + image: ${REGISTRY}sitecore-xm-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - C:\license:C:\license + - .\data\cd:C:\inetpub\wwwroot\App_Data\logs + ports: + - "44002:80" + links: + - sql + - solr cm: image: ${REGISTRY}sitecore-xm-spe-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} diff --git a/windows/tests/9.x.x/docker-compose.sxa.xm.yml b/windows/tests/9.x.x/docker-compose.sxa.xm.yml index e4d178665..75ef66577 100644 --- a/windows/tests/9.x.x/docker-compose.sxa.xm.yml +++ b/windows/tests/9.x.x/docker-compose.sxa.xm.yml @@ -18,16 +18,16 @@ services: ports: - "44011:8983" - # cd: - # image: ${REGISTRY}sitecore-xm-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} - # volumes: - # - C:\license:C:\license - # - .\data\cd:C:\inetpub\wwwroot\App_Data\logs - # ports: - # - "44002:80" - # links: - # - sql - # - solr + cd: + image: ${REGISTRY}sitecore-xm-sxa-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - C:\license:C:\license + - .\data\cd:C:\inetpub\wwwroot\App_Data\logs + ports: + - "44002:80" + links: + - sql + - solr cm: image: ${REGISTRY}sitecore-xm-sxa-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} diff --git a/windows/tests/9.x.x/docker-compose.sxa.xp.yml b/windows/tests/9.x.x/docker-compose.sxa.xp.yml index 2681fb3ec..1586bf9fe 100644 --- a/windows/tests/9.x.x/docker-compose.sxa.xp.yml +++ b/windows/tests/9.x.x/docker-compose.sxa.xp.yml @@ -48,17 +48,17 @@ services: - sql - solr - # cd: - # image: ${REGISTRY}sitecore-xp-sxa-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} - # volumes: - # - C:\license:C:\license - # - .\data\cd:C:\inetpub\wwwroot\App_Data\logs - # ports: - # - "44002:80" - # links: - # - sql - # - solr - # - xconnect + cd: + image: ${REGISTRY}sitecore-xp-sxa-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} + volumes: + - C:\license:C:\license + - .\data\cd:C:\inetpub\wwwroot\App_Data\logs + ports: + - "44002:80" + links: + - sql + - solr + - xconnect cm: image: ${REGISTRY}sitecore-xp-sxa-standalone:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} From 4f2f6e084e196aa3b4b6eab31fda4c5c33275108 Mon Sep 17 00:00:00 2001 From: Bart Plasmeijer Date: Tue, 22 Oct 2019 22:57:13 +0200 Subject: [PATCH 4/4] update to ${LICENSE_PATH} --- windows/tests/9.x.x/docker-compose.jss.xm.yml | 4 ++-- windows/tests/9.x.x/docker-compose.spe.xm.yml | 4 ++-- windows/tests/9.x.x/docker-compose.sxa.xm.yml | 4 ++-- windows/tests/9.x.x/docker-compose.sxa.xp.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/windows/tests/9.x.x/docker-compose.jss.xm.yml b/windows/tests/9.x.x/docker-compose.jss.xm.yml index d04322144..f28ba2722 100644 --- a/windows/tests/9.x.x/docker-compose.jss.xm.yml +++ b/windows/tests/9.x.x/docker-compose.jss.xm.yml @@ -21,7 +21,7 @@ services: cd: image: ${REGISTRY}sitecore-xm-jss-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - - C:\license:C:\license + - ${LICENSE_PATH}:C:\license - .\data\cd:C:\inetpub\wwwroot\App_Data\logs ports: - "44002:80" @@ -32,7 +32,7 @@ services: cm: image: ${REGISTRY}sitecore-xm-jss-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - - C:\license:C:\license + - ${LICENSE_PATH}:C:\license - .\data\cm:C:\inetpub\wwwroot\App_Data\logs ports: - "44001:80" diff --git a/windows/tests/9.x.x/docker-compose.spe.xm.yml b/windows/tests/9.x.x/docker-compose.spe.xm.yml index e7ffb71ed..dcbdf1437 100644 --- a/windows/tests/9.x.x/docker-compose.spe.xm.yml +++ b/windows/tests/9.x.x/docker-compose.spe.xm.yml @@ -21,7 +21,7 @@ services: cd: image: ${REGISTRY}sitecore-xm-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - - C:\license:C:\license + - ${LICENSE_PATH}:C:\license - .\data\cd:C:\inetpub\wwwroot\App_Data\logs ports: - "44002:80" @@ -32,7 +32,7 @@ services: cm: image: ${REGISTRY}sitecore-xm-spe-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - - C:\license:C:\license + - ${LICENSE_PATH}:C:\license - .\data\cm:C:\inetpub\wwwroot\App_Data\logs ports: - "44001:80" diff --git a/windows/tests/9.x.x/docker-compose.sxa.xm.yml b/windows/tests/9.x.x/docker-compose.sxa.xm.yml index 75ef66577..a4ff0862b 100644 --- a/windows/tests/9.x.x/docker-compose.sxa.xm.yml +++ b/windows/tests/9.x.x/docker-compose.sxa.xm.yml @@ -21,7 +21,7 @@ services: cd: image: ${REGISTRY}sitecore-xm-sxa-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - - C:\license:C:\license + - ${LICENSE_PATH}:C:\license - .\data\cd:C:\inetpub\wwwroot\App_Data\logs ports: - "44002:80" @@ -32,7 +32,7 @@ services: cm: image: ${REGISTRY}sitecore-xm-sxa-cm:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - - C:\license:C:\license + - ${LICENSE_PATH}:C:\license - .\data\cm:C:\inetpub\wwwroot\App_Data\logs - .\data\src:C:\src ports: diff --git a/windows/tests/9.x.x/docker-compose.sxa.xp.yml b/windows/tests/9.x.x/docker-compose.sxa.xp.yml index 1586bf9fe..70d4c4e96 100644 --- a/windows/tests/9.x.x/docker-compose.sxa.xp.yml +++ b/windows/tests/9.x.x/docker-compose.sxa.xp.yml @@ -51,7 +51,7 @@ services: cd: image: ${REGISTRY}sitecore-xp-sxa-cd:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - - C:\license:C:\license + - ${LICENSE_PATH}:C:\license - .\data\cd:C:\inetpub\wwwroot\App_Data\logs ports: - "44002:80" @@ -63,7 +63,7 @@ services: cm: image: ${REGISTRY}sitecore-xp-sxa-standalone:${SITECORE_VERSION}-windowsservercore-${WINDOWSSERVERCORE_VERSION} volumes: - - C:\license:C:\license + - ${LICENSE_PATH}:C:\license - .\data\cm:C:\inetpub\wwwroot\App_Data\logs ports: - "44001:80"