Sunday, April 11, 2021

Installing Sitecore 10 using getting started template - Docker

 

Install the prerequisites

.NET Core 3.1 SDK (check your installed version with the dotnet --version command)

.NET Framework 4.8 SDK (see the Microsoft procedure for checking .NET Framework versions)

Visual Studio 2019

Docker for Windows (with Windows Containers enabled)

PowerShell 5.1 (PowerShell 7 is not supported)

Step 1:

ØCreated source folder and point the folder in powershell

ØRun it - > dotnet new -i Sitecore.DevEx.Templates --nuget-source https://sitecore.myget.org/F/sc-packages/api/v3/index.json



ØCheck if you have Internet Information Server running on port 443:

Get-Process -Id (Get-NetTCPConnection -LocalPort 443).OwningProcess

ØIf you do, you must to stop it:

iisreset /stop

ØCheck if you have Internet Information Server running on port 8984:

Get-Process -Id (Get-NetTCPConnection -LocalPort 8984).OwningProcess

Step 2:

ØCreate new project

dotnet new sitecore.aspnet.gettingstarted -n MySC10Project

ØSet certificate path

.\init.ps1 -InitEnv -LicenseXmlPath "<path to your license.xml file>" -AdminPassword "<your Sitecore administrator password>"

ØYou use the provided init.ps1 script to prepare the following items for the Sitecore container environment:

.\up.ps1

Step 3:

ØSitecore instance automatically opens in browser, we have to give the credential.

Øhttps://cm.mysc10project.localhost/sitecore/client/Applications/Launchpad?sc_lang=en#dateFrom=22-12-2020&dateTo=22-03-2021

Øhttps://id.mysc10project.localhost/ points to the mysc10project_id_1 container with a Sitecore instance hosting Sitecore Identity Server.

 https://cm.mysc10project.localhost/ points to the mysc10project_1 container with a Sitecore instance hosting Content ManagementContent Delivery, and Sitecore Layout Service.

Øhttps://www.mysc10project.localhost/ points to the mysc10project_rendering_1 container with the rendering host.

 Useful Comments

ØOnce you resume your work after this installation, you can use the below comments for creating new healthy containers

docker-compose stop

docker-compose down

iisreset /stop

docker-compose up -d

 













No comments:

Post a Comment

Steps to follow when using a PowerShell script to modify the goals in Sitecore

I have previously utilized PowerShell for item creation, modification, deletion, and presentation details in Sitecore.   Ø Recently, I attem...