Unsolved Install Qt inside Docker image (Windows Server)
-
I'm using Docker for my automated builds. The builds run on Windows Server and the base of the Docker image is "windows-servercore" Inside the Docker container is an installation of Visual Studio, Qt, Chocolatey and CppCheck.
However, the installation of Qt inside the image is very cumbersome. I am using a "silent" script to automate the Qt installation, but I have to disable the internet connection before the Qt installation begins, otherwise the installer gets stuck, as it can't bypass the login screen...which means I have to "babysit" the Docker build every single time I have to re-run it.
Which is pretty annoying, considering I am using the "offline" installer.
Also, I can say this was not an issue last year. Something broke around January/February 2020, making it impossible to install Qt in a container without user intervention.
So, my question is: Is there a way to install Qt inside a Docker image that does not require user intervention? If so, can you please provide an example Dockerfile and silent install .qs script?
-
Hi
Silent is really not supported. There is a script but it seems it needs tweaking.
https://forum.qt.io/topic/117066/qt-silent-installation-on-linux-serverI been told this works good
https://github.com/miurahr/aqtinstall
but never tested it. -
@mrjj said in Install Qt inside Docker image (Windows Server):
Silent is really not supported.
That's a bummer. We are using pretty similar script, but I can't make it work unless I disconnect network.
The github repo looks nice, but I don't think we can use it for our project.
Thank you for your answer!