forked from Sitecore/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Sitecore/master
fr
- Loading branch information
Showing
9 changed files
with
3,639 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"tags": [ | ||
{ | ||
"tag": "community/modules/custom-sfcrm-assets:10.0.0-linux", | ||
"build-options": [ | ||
"--build-arg BASE_IMAGE=mcr.microsoft.com/powershell:lts-alpine-3.10", | ||
"--build-arg ROLES=cm", | ||
"--file linux/10.0.0/modules/Dockerfile" | ||
] | ||
} | ||
], | ||
"sources": [ | ||
"Sitecore Connect for Salesforce CRM 5.0.0 rev. 01431.scwdp.zip" | ||
] | ||
} |
55 changes: 55 additions & 0 deletions
55
build/linux/10.0.0/modules/sfcrm-assets/tools/Extract-Resources.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[CmdletBinding()] | ||
param ( | ||
[Parameter(Mandatory=$true)] | ||
[string]$Roles, | ||
[Parameter(Mandatory=$true)] | ||
[string]$SourceFolder, | ||
[Parameter(Mandatory=$true)] | ||
[string]$DestinationFolder | ||
) | ||
|
||
New-Item -Path $DestinationFolder -ItemType Directory -Force | ||
|
||
$Roles -Split ',' | ForEach-Object { | ||
$role = $_ | ||
|
||
$sourceRoleFolder = Join-Path -Path $SourceFolder -ChildPath $role | ||
$extractFolder = Join-Path -Path $sourceRoleFolder -ChildPath "temp" | ||
$extractWebsiteFolder = Join-Path -Path $extractFolder -ChildPath "Content\Website" | ||
$destinationRoleContentFolder = Join-Path -Path $DestinationFolder -ChildPath "$role\content" | ||
|
||
$wdp = Get-ChildItem -Path $sourceRoleFolder -Filter *.scwdp.zip | ||
Expand-Archive -Path $wdp.FullName -DestinationPath $extractFolder | ||
|
||
New-Item -Path $destinationRoleContentFolder -ItemType Directory -Force | ||
Move-Item -Path "$extractWebsiteFolder\*" -Destination $destinationRoleContentFolder -Force -ErrorAction SilentlyContinue | ||
|
||
$dbs = Get-ChildItem -Path $extractFolder -Filter *.dacpac | ||
|
||
if (($dbs | Measure-Object).Count -gt 0) { | ||
$destinationDBFolder = Join-Path -Path $DestinationFolder -ChildPath "db" | ||
|
||
if (!(Test-Path -Path $destinationDBFolder -PathType Container)) { | ||
New-Item -Path $destinationDBFolder -ItemType Directory -Force | ||
} | ||
|
||
$dbs | ForEach-Object { | ||
$db = $_ | ||
|
||
$destinationDBPath = Join-Path -Path $destinationDBFolder -ChildPath "Sitecore.$($db.Name)" | ||
Move-Item -Path $_.FullName -Destination $destinationDBPath | ||
} | ||
} | ||
|
||
$sourceSolrSchemaPath = Join-Path -Path $destinationRoleContentFolder -ChildPath "App_Data\SolrSchema\managed-schema" | ||
if (Test-Path -Path $sourceSolrSchemaPath -PathType Leaf) { | ||
$solrSchema = Get-Item -Path $sourceSolrSchemaPath | ||
$destinationSolrSchemaFolder = Join-Path -Path $DestinationFolder -ChildPath "solr" | ||
|
||
if (!(Test-Path -Path $destinationSolrSchemaFolder -PathType Container)) { | ||
New-Item -Path $destinationSolrSchemaFolder -ItemType Directory -Force | ||
} | ||
|
||
Move-Item -Path $solrSchema.FullName -Destination $destinationSolrSchemaFolder | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.