From 701437e0353f8a5db55595c9c57579b313a43c0d Mon Sep 17 00:00:00 2001 From: Robbert Hock Date: Tue, 15 Mar 2022 10:41:04 +0100 Subject: [PATCH] Changed the dateformat to be yyyyMMdd_ + updated contributors --- Create-SitecoreModule-DockerAssetImage.ps1 | 4 ++-- README.md | 13 +++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Create-SitecoreModule-DockerAssetImage.ps1 b/Create-SitecoreModule-DockerAssetImage.ps1 index dfaf294..1d82230 100644 --- a/Create-SitecoreModule-DockerAssetImage.ps1 +++ b/Create-SitecoreModule-DockerAssetImage.ps1 @@ -16,7 +16,7 @@ https://ericastockwellalpert.wordpress.com/2021/02/23/creating-a-docker-asset-image-for-your-sitecore-module-and-adding-it-to-your-site/ .NOTES Version: 1.0 - Author: Robbert Hock - Kayee - Sitecore MVP 2010-2021 + Author: Robbert Hock - Kayee - Sitecore MVP 2010-2022 Creation Date: June/July 2021 Purpose/Change: Initial script development #> @@ -87,7 +87,7 @@ else { Write-Host "START - [Convert Sitecore Module to .scwdp]" Write-Host "`n" - $dateTime = (Get-Date).tostring("ddMMyyyyHHmmss") + $dateTime = (Get-Date).tostring("yyyyMMdd_HHmmss") $packagePath = $PSScriptRoot + "\Package\$ModulePackageName" $modulePackageItem = Get-Item $packagePath $modulePackageNameSinExtension = $modulePackageItem.BaseName diff --git a/README.md b/README.md index 39d071c..ef5b208 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,22 @@ # sitecore-module-docker-asset-image-creator + This repository contains a script to handle the auto creation of a Docker Asset Image for a given Sitecore module - Clone the repo to your working machine - Add the Sitecore module package to Package folder under root - 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 - ```powershell - .\Create-SitecoreModule-DockerAssetImage.ps1 -ModulePackageName "Brightcove.Media.Framework-10.0.zip" - ``` -- The folder name is generated based on the ModulePackageName provided while invoking the script and appends the current datetime stamp in `ModulePackageName_ddMMyyyyHHmmss` format + ```powershell + .\Create-SitecoreModule-DockerAssetImage.ps1 -ModulePackageName "Brightcove.Media.Framework-10.0.zip" + ``` +- 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 - 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 - 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 ![image](https://user-images.githubusercontent.com/3968213/129932632-67ee772f-63da-421e-a476-dfe08635ca69.png) # Contributors + Robbert Hock - Twitter: @kayeeNL, GitHub: https://github.com/KayeeNL +Anton Tishchenko - Twitter: @ativn, GitHub: https://github.com/Antonytm +Christopher Huemmer - Twitter: @chrishmmr, GitHub: https://github.com/chris-hmmr +Venkata Phani Abburi - Twitter: @phani_abburi, GitHub: https://github.com/phaniav