Omnis App Server running in Windows Docker Container
Alan Davey
david.a.davey at gmail.com
Thu Dec 1 13:46:29 UTC 2022
Hey Everyone,
Just wanted to circle back on this as I finally got it working. It turns
out that the servercore image with IIS that I was using didn't include a
full set of APIs and Services which led to the omnis.exe crashing when the
service tried to initialize it.
Using the full windows image for 2019 resolved the issue.
FROM mcr.microsoft.com/windows:ltsc2019
I then needed to add a command to my Dockerfile to install IIS:
RUN dism.exe /online /enable-feature /all /featurename:iis-webserver
/NoRestart
After building the image and launching a container I'm then able to access
both IIS and the Omnis Service from my localhost.
Hopefully this is helpful to others that may be looking to create a similar
environment using containers.
Alan
On Tue, Nov 22, 2022 at 4:41 PM Alan Davey <david.a.davey at gmail.com> wrote:
> Hi $all,
>
>
>
> I’m trying to create a windows container (Server 2019) with IIS and Omnis
> App Server and test on my Windows 10 development environment. I’ve created
> the container, but for some reason the OMNISServerx64 service refuses to
> start. IIS is running fine and I’m able to connect to it and see my web
> pages. I’m just curious if anyone has been successful in getting this type
> of container working on windows 10.
>
>
>
> My Dockerfile:
>
> FROM mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019
>
>
>
> RUN powershell -NoProfile -Command Remove-Item -Recurse
> C:\inetpub\wwwroot\*
>
>
>
> WORKDIR /inetpub/wwwroot
>
> COPY content/ .
>
>
>
> RUN mkdir c:\Studio
>
> WORKDIR /Studio
>
> COPY Studio/ .
>
>
>
> RUN cmd /c Omnis-App-Server-10.22-x64.exe --mode unattended --installscope
> allusers --serialno "XXX XXX XXX" --serverport 5912
>
>
>
> RUN cmd /c net start OMNISServerx64
>
>
>
> After building the container and running it, I then shell into the
> container to check the Omnis service, but it is not running. When I
> execute the service manually, I get:
>
> C:\Studio>net start OMNISServerx64
>
> The OMNIS Server x64 service is starting.
>
> The OMNIS Server x64 service could not be started.
>
>
>
> The service did not report an error.
>
>
>
> More help is available by typing NET HELPMSG 3534.
>
>
>
> Unfortunately there are no error messages or logs that point to what the
> problem is.
>
>
>
> As a workaround I can spin up a virtualbox with Windows Server 2019
> running, build the container and then see that the service is running
> fine. So I know everything in the docker file is fine. It just seems that
> something is missing from my Windows 10 environment.
>
>
>
> Any thoughts on how to resolve this would be greatly appreciated.
>
>
>
> Thanks,
>
>
> Alan
>
More information about the omnisdev-en
mailing list