Saturday, March 27, 2021

Sitecore Installation in docker container

 

Install the prerequisites

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 an Internet Information Server running on port 443:

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

ØIf you do, you must stop it:

iisreset /stop

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

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


Step 2:

ØCreate new project- instance

dotnet new sitecore.aspnet.gettingstarted -n MySC10Project(this is my instance name)


Ø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:



Ø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 below comments for create new healthy containers

docker-compose stop

docker-compose down

iisreset /stop

docker-compose up -d


Possible Error

Issue section


ØSo I used this commend to pull the SDK image explicitly.it will arise if your network connection is poor

docker pull mcr.microsoft.com/dotnet/framework/sdk:4.8





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...