Author : Raman Gupta
Sitecore Architect
15/Oct/2020

Raman is a Sitecore Certified Professional with over 6 years of development and implementation experience of Multi-Lingual and Multi-Site architecture design and implementations. He is proficient in project execution using agile methodology as a Scrum master with an expertise in DevOps principles as well.


Step-by-Step Installation of Sitecore 10 on Docker Desktop

Introduction

One of the highlights of the newly released Sitecore Experience Platform (10.0) is that it brings support for rapid deployment and more efficient solution and team onboarding with modern Docker technology i.e. Sitecore Containers. Sitecore, with the launch of its Sitecore XP 10, will now be providing full support for deploying solutions in containerized environment. There are already excellent and detailed resources available online that cover the concepts of containers and Docker thoroughly. In this blog, we will briefly cover the overview of the topic and step-by-step installation of Sitecore 10 docker.

Prerequisites:

To run Docker on Windows 10, you will need the following:

  • Windows 10 Professional or Enterprise version 1809 (2019 LTSC) or later
  • Hyper-V enabled
  • Docker Desktop Installed on Windows Desktop
  • Docker Desktop support for windows containers
  • 32 GB of RAM, Quad core Processor CPU
  • Approximately 25GB of free disk space for Sitecore container images. SSD storage is highly recommended for optimal performance
  • The default Sitecore container configuration uses specific ports. To avoid any conflicts, you should ensure the following ports are not being used by another process: 443, 8079, 8081, 8984, and 14330

Additional files:

  • Init.ps1
  • Docker-compose.yaml
  • Env file

Installation Step:

Once prerequisites are met, the installation itself is quite simple.

  • Enable Windows Feature for Windows Containers:
    • Run PowerShell as admin
    • Run this command
    • Enable-WindowsOptionalFeature -Online -FeatureName $(“Microsoft-Hyper-V”, “Containers”) -all

    • Powershell will prompt for system restart. Don’t do it yet
  • Download and Install Docker Desktop for windows (Stable or Edge) from here
  • Now restart Windows Desktop
  • Right click docker icon in the right bottom panel, select "Switch to Windows containers"

Step by step installation of sitecore10 on docker desktop1

  • Download Sitecore 10 Container deployment package from dev.sitecore.net (needs Sitecore account)
  • Copy and extract SitecoreContainerDeployment 10.0.0 rev. 004346-027.zip for e.g:- C:SitecoreXPDocker
  • We’ll use the XP0 topology for this demo
  • Add init.ps1 and docker-compose.yaml files (custom files)
  • Open Powershell.exe (not ISE) as admin
  • CD into the folder of Sitecore 10 Container Deployment Package and to the desired topology
  • Execute
    • .\init.ps1 -LicenseXmlPath $licensePath –SitecoreAdminPassword $AdminPwd -SqlSaPassword $sqlPwd
    • $licensePath is the path to a valid License.xml file
    • This script will set up all the environment variables in .env file

    • Execute Docker-compose up - detach

    • This should pull images from Sitecore Docker Repository
    • After pull, extraction of images is complete. The containers will be deployed

    • The scripts should run for 20 mins and instance should be ready to use

Step by step installation of sitecore10 on docker desktop2

Open Docker Dashboard and you should see Sitecore-XP0 running

Step by step installation of sitecore10 on docker desktop3

Browse to CMS

Step by step installation of sitecore10 on docker desktop4

How to get into wwwroot of docker containers?

  • Execute this to get the list of containers:
  • “Docker ps”
  • Note the container name
  • Execute this to take powershell session of the container
  • docker exec -it $containerName powershell

How to log into SQL Server using SSMS?

  • Note down the port number of SQL Container
  • Open SSMS, Enter “localhost, portNumber” in server and login with sa credentials

Download Installation Guide

Installation Guide : Installation Guide

.Init File : Installation Guide



MORE FROM OUR BLOGS

Espires top 10 webinars for fy20 21 a win win for us our partners and customers

With FY20-21 in hindsight, in this blog, we share a list of Espire’s top 10 webinars from the past financial year that resulted in win-win for us, our partners and our clients!

Top 7 strategic technology trends for optimum returns in 2021

Gartner's top technology trends highlight the upcoming technologies that businesses must focus on for driving innovation and building future resilience. These trends are grouped into three broad categories, namely people centricity, location interdependence and resilient delivery.

7 reasons why brands are shifting to progressive web apps

Progressive Web Apps (PWA) are websites that can be accessed through web browsers and deliver an experience similar to native application. PWAs help businesses reduce data costs and optimize user experience without the need to create separate versions for different devices and operating systems

Accelerate your digital transformation in 2021 with hybrid headless cms

Digital transformation has been on the rise, but it is often seen that brands tend to fail in their efforts or remain clueless on how to reap business benefits from it. Digital transformation combines a whole set of technological transformation that is triggered through disruptive tools encompassing AI, ML, Robotics, Automation, Data Analytics as well as digitization and digital content management among others.

Master personalization with full control on your content lifecycle with sitecore

Sitecore is enabling brands to leverage the benefits of existing CMS and expand their ability to master the end-to-end content lifecycle through content creation, publishing, engagement data and to kick start the journey towards an omnichannel personalized digital experiences at scale.

Top challenges in customer journey mapping and how to mitigate them in 2021

In the new normal, customer journey mapping has emerged as a pre-requisite for analyzing customer expectations and delivering personalized customer experiences across all touchpoints. Cross-device and multiple-channel access of services has made mapping customer journey a tedious task for businesses.

How espire aced digital experiences amid global pandemic top 10 highlights

2020 was defined not just by unprecedented events and crisis but also by the spirit of survival, agility and resilience. The COVID-19 pandemic disrupted lives, livelihoods and businesses on a global scale. At Espire, our commitment to combat the pandemic with a spirit of unity, agility and resilience has helped our customers, partners and employees with uninterrupted and excellent service delivery - without compromising on health & safety standards.

5 pillars of contextual communications to drive impressive cx and greater customer engagement

In recent times and especially during the pandemic, the phrase ‘content is king’ has caught on like wildfire in the world of marketing but in retrospect, content without context has no value for customers. In simple words, Contextual Communications means that the right message is delivered to the right audience at the right time, using the right channel.

How has the logistics industry reshaped in new normal and roadmap ahead

Logistics industry has been undergoing a rapid boom initiated by globalization and catapulted to new heights by new means of communication and rapid advancement in supply chain technologies. However, the new normal as we face today is shaping the logistics industry in newer ways.

Top 4 benefits of embracing digital transformation in insurance for 2021

With the increase in Insurtech players, tech savvy customers and competitive growth of digital services, digital transformation has become imperative for the insurance industry for both customer acquisition and retention. Eminent insurance providers are utilizing disruptive technology and predictive analysis to examine customer demands and deliver personalized solutions and great customer experience

Subscribe To Our Blog

By clicking on "SUBSCRIBE NOW" you acknowledge having read our Privacy Notice.