Skip to content

Commit 3014a4d

Browse files
authored
Merge pull request #5 from KayeeNL/feature/Small_Fixes
Changed the dateformat to be yyyyMMdd_ + updated contributors
2 parents dbd2cdf + 701437e commit 3014a4d

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Create-SitecoreModule-DockerAssetImage.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
https://ericastockwellalpert.wordpress.com/2021/02/23/creating-a-docker-asset-image-for-your-sitecore-module-and-adding-it-to-your-site/
1717
.NOTES
1818
Version: 1.0
19-
Author: Robbert Hock - Kayee - Sitecore MVP 2010-2021
19+
Author: Robbert Hock - Kayee - Sitecore MVP 2010-2022
2020
Creation Date: June/July 2021
2121
Purpose/Change: Initial script development
2222
#>
@@ -87,7 +87,7 @@ else {
8787
Write-Host "START - [Convert Sitecore Module to .scwdp]"
8888
Write-Host "`n"
8989

90-
$dateTime = (Get-Date).tostring("ddMMyyyyHHmmss")
90+
$dateTime = (Get-Date).tostring("yyyyMMdd_HHmmss")
9191
$packagePath = $PSScriptRoot + "\Package\$ModulePackageName"
9292
$modulePackageItem = Get-Item $packagePath
9393
$modulePackageNameSinExtension = $modulePackageItem.BaseName

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
# sitecore-module-docker-asset-image-creator
2+
23
This repository contains a script to handle the auto creation of a Docker Asset Image for a given Sitecore module
34

45
- Clone the repo to your working machine
56
- Add the Sitecore module package to Package folder under root
67
- Then invoke the script as shown in example below to convert it into scwdp (used for Azure PaaS) as well as extract the scwdp into a Module folder used for generating the docker image
7-
```powershell
8-
.\Create-SitecoreModule-DockerAssetImage.ps1 -ModulePackageName "Brightcove.Media.Framework-10.0.zip"
9-
```
10-
- The folder name is generated based on the ModulePackageName provided while invoking the script and appends the current datetime stamp in `ModulePackageName_ddMMyyyyHHmmss` format
8+
```powershell
9+
.\Create-SitecoreModule-DockerAssetImage.ps1 -ModulePackageName "Brightcove.Media.Framework-10.0.zip"
10+
```
11+
- The folder name is generated based on the ModulePackageName provided while invoking the script and appends the current datetime stamp in `ModulePackageName_yyyyMMdd_HHmmss` format
1112
- Run the docker file under Module folder to generate the image. The script only extracts it for CM role. For other roles, you have to manually create role specific docker files
1213
- Once the image is generated, push it to your container registry to share it with other devs in your team or devops for AKS deployment
1314

1415
![image](https://user-images.githubusercontent.com/3968213/129932632-67ee772f-63da-421e-a476-dfe08635ca69.png)
1516

1617
# Contributors
18+
1719
Robbert Hock - Twitter: @kayeeNL, GitHub: https://github.com/KayeeNL
20+
Anton Tishchenko - Twitter: @ativn, GitHub: https://github.com/Antonytm
21+
Christopher Huemmer - Twitter: @chrishmmr, GitHub: https://github.com/chris-hmmr
22+
Venkata Phani Abburi - Twitter: @phani_abburi, GitHub: https://github.com/phaniav

0 commit comments

Comments
 (0)