首页 > 其他分享 >Sitecore XP 10.3(latest) Docker一键部署

Sitecore XP 10.3(latest) Docker一键部署

时间:2023-04-26 10:37:58浏览次数:54  
标签:docker 10.3 compose Windows Desktop Sitecore Docker XP

本文演示通过PowerShell+Docker Desktop for Windows 一键部署Sitecore10.3(即Sitecore最新版)Docker开发/测试/演示 环境。

官方参考 SitecoreXP 10.3.0 Developer Workstation Deployment With Docker

演示配置为XP Single(XP0) 

环境准备

1,windows10+/Windows Server2019(Windows Server 1903)+

2,Sitecore 10 license file

3,Docker Desktop for Windows

4,官方建议16GB的内存,实际8GB内存应该也可以(需要验证)

本文示例操作系统为:Windows 11专业版

 

指引

1,前置条件:Set up the environment

下载并安装Docker Desktop for Windows

确保以下端口未被占用:

 

2,下载部署包

 下载 SXP Sitecore Container Deployment 10.3.0.008463.1229,下载SitecoreContainerDeployment.10.3.0.008463.1229.zip文件即可。

可以通过compose-init.ps1文件查阅管理后台的密码(默认管理员账号为admin)。

以管理员方式打开Windows PowerShell ISE,进入部署包所在目录:

cd D:\Workspace\Sitecore10\SitecoreContainerDeployment.10.3.0.008463.1229\compose\ltsc2022\xp0

执行:

.\compose-init.ps1 -LicenseXmlPath D:\license\license.xml

等待命令执行完毕(较耗时,需下载各个image),再执行:

docker-compose up --detach

执行完毕后查看Containers的状态:

 打开浏览器,访问:https://xp0cm.localhost/

 访问 https://xp0cm.localhost/sitecore 进入管理后台,默认管理员账号为admin

 进入Control Panel,重新build index。

 

问题集

1,error:“Pulling from windows/servercore: no matching manifest for linux/amd64 in the manifest list entries”

Docker Desktop托盘, Switch to Windows containers

Docker Desktop默认安装以后还是Linux模式,需要切换到Windows containers模式

 

2,error: "A parameter cannot be found that matches parameter name 'AllowPrerelease'"

执行:

Install-Module -Name PackageManagement -Repository PSGallery -Force -AllowClobber
Install-Module -Name PowerShellGet -Repository PSGallery -Force -AllowClobber

参考 A parameter cannot be found that matches parameter name 'AllowPrerelease'

 

3,关机后无法启动windows容器

需要先删除全部Container,执行

docker container rm $(docker container ls -aq)

确保当前目录在:

cd D:\Workspace\Sitecore10\SitecoreContainerDeployment.10.3.0.008463.1229\compose\ltsc2022\xp0

然后重新执行:

docker-compose up --detach

 启动成功:

 

最后,xp1的docker部署包也同样,切换执行目录即可。

 

标签:docker,10.3,compose,Windows,Desktop,Sitecore,Docker,XP
From: https://www.cnblogs.com/hangwei/p/17352857.html

相关文章

  • Prometheus监控之SNMP Exporter介绍和数据展现
    由于技术能力有限,文章仅能进行简要分析和说明,如有不对的地方,请指正,谢谢......
  • [Python自动化]使用Python Pexpect模块实现自动化交互脚本使用心得
    使用PythonPexpect模块实现自动化交互脚本使用心得参考文档:https://pexpect.readthedocs.io/en/stable/前言在最近的工作中,需要使用DockerFile构建镜像。在构建镜像的过程中,有一些执行的命令是需要交互的。例如安装tzdata(aptinstalltzdata),不过在使用apt安装时,可以直接使......
  • How use the RegExp to filter IP address in js All In One
    HowusetheRegExptofilterIPaddressinjsAllInOne如何使用RegExp在js中过滤IP地址192.168.18.1<192.168.18.N<192.168.18.255ignoreIPs:192.168.18.0/192.168.18.1/192.168.18.255errorfunctiontest(n){letreg=/192\.168\.(1?[0-9][0-......
  • 采用 NXP 嵌入式ARM控制器可用于数字化工厂
    近年来,随着工业自动化水平的不断提高,越来越多的数字化工厂开始采用嵌入式控制器来实现智能化管理。而本文所介绍的嵌入式ARM控制器正是针对数字化工厂的应用场景设计而成的。首先,我们来看一下该产品的优势。作为一款高性能的嵌入式控制器,该产品具有以下几个特点:1.高性能处理器:采......
  • Sitecore10 Demo演示环境Azure一键部署(Step By Step Guide to installing Sitecore10
    本文演示SitecoreXPSingle(XP0)在Azure上的一键部署,即“30分钟生成Sitecore演示环境”的一环。关于XP(即SitecoreExperiencePlatform)roles的相关介绍移步XPSingle配置主要用来开发和测试:FourSitecoreroles:ContentDelivery,ContentManagement,Processing,andRepo......
  • Unity通过PBXProject生成XCode工程
    Unity版本:2020.3.47f1首先通过PostProcessBuildAttribute监听XCode工程导出完成事件,GetUnityMainTargetGuid是获取XCode工程中"Unity-iPhone"对应的target,GetUnityFrameworkTargetGuid则对应"UnityFramework",在unity中大部分操作会是针对UnityFramework。PBXProject的很多操作都......
  • pg_inconsistent_之_unexpect_clone_修复方法
    目录问题背景解决方案问题背景ceph集群pginconsistent,日志提示log_channel(cluster)log[ERR]:scrub19.15b919:9dac2ec3:::rbd_data.b29154238e1f29.0000000000001953:12isanunexpectedclone解决方案设置禁止scrub的维护标志位cephosdsetnooutcephosd......
  • The binary version of its metadata is 1.8.0, expected version is 1.5.1.
    C:/Users/sdt16354/.gradle/caches/transforms-3/b92f389f516aa233b37ae70b7a7c1337/transformed/jetified-annotation-jvm-1.6.0.jar!/META-INF/annotation.kotlin_module:ModulewascompiledwithanincompatibleversionofKotlin.Thebinaryversionofitsmetadata......
  • web前端pdf.js预览pdf实例创建报错:Array. prototype` contains unexpected enumerable
    使用pdf.min.js是预览pdf文件,但是在实例化时异常报错,下面是实例化的代码varloadingTask=window.pdfjsLib.getDocument(url);console.log(loadingTask);this.pageNum=1;this.pageRendering=false;this.pageNumPending=null;loadingTask.promise.then((pdfDoc_)=>......
  • RegExp.$1~9被弃用后替换方法
    RegExp.$1使用functionformatFunction(date,fmt){ if(/(y+)/.test(fmt)){  fmt=fmt.replace(   RegExp.$1,   (date.getFullYear()+"").substring(4-RegExp.$1.length)  ); } consto={  "M+":date.getMonth()+1,......