Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to containerize Dynamics CRM 2016. #511

Open
nikawang opened this issue May 27, 2022 · 2 comments
Open

Failed to containerize Dynamics CRM 2016. #511

nikawang opened this issue May 27, 2022 · 2 comments

Comments

@nikawang
Copy link

Trying to containerize Dynamics CRM 2016, but encountered some issues:

  • Failed to install some windows features: File Server Resource Manager, Search-Service
    failedtoinstall-fsrm
    failedtoinstall-search
  • No access to SQL Server, Reporting Server even using gMSA with container
    cant-connect-reporting
    cant-connect-sql
  • Can't show a modal dialog when the application is not running in UserInteractive mode.
    cannot-show-dialog
@nikawang
Copy link
Author

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
gmsa-good

Please help to check . Thanks very much!

@rdebath
Copy link

rdebath commented Apr 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants