Failed to containerize Dynamics CRM 2016.
nikawang opened this issue · comments
Trying to containerize Dynamics CRM 2016, but encountered some issues:
Please see Dockerfile as below
FROM mcr.microsoft.com/windows/servercore:ltsc2019
ADD CRM2016-Server-ENU-amd64.exe C:/
ADD vcredist_x64.exe C:/
ADD vcredist_x86.exe C:/
ADD sqlncli_x64.msi C:/
ADD sqlncli2008r2_64.msi C:/
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Start-Process msiexec -ArgumentList '/i', 'sqlncli_x64.msi', 'IACCEPTSQLNCLILICENSETERMS=YES', '/qn' -Wait
RUN Start-Process msiexec -ArgumentList '/i', 'sqlncli2008r2_64.msi', 'IACCEPTSQLNCLILICENSETERMS=YES', '/qn' -Wait
RUN .\vcredist_x64.exe /q;
RUN .\vcredist_x86.exe /q;
RUN Start-Process C:\CRM2016-Server-ENU-amd64.exe -ArgumentList '/quiet' ,'/extract:C:\CRM' -Wait
ADD Redist C:/CRM/Redist
ADD SQLNativeClient C:/CRM/SQLNativeClient
ADD VCRedist C:/CRM/VCRedist
ADD VCRedist10 C:/CRM/VCRedist10
ADD server_install_config.xml C:/CRM/server_install_config.xml
RUN Start-Process C:/CRM/SetupServer.exe -ArgumentList '/QR', '/L', 'C:\CRM\server_install_config.log', '/config', 'C:\CRM\server_install_config.xml' -Wait
BTW, I'm using gMSA to build the docker image. Please see the verification output as below
Please help to check . Thanks very much!
Can't show a modal dialog when the application is not running in UserInteractive mode.
Yeh, Windows installers are really bad at a non-interactive install.
PS C:> Install-Windowsfeature FS-Resource-Manager
... Error ...
Can CRM 2016 even install on Windows Server Core ?
PS C:> Install-Windowsfeature Search-Service
Okaaaay, that would be a no.