Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Install Qt inside Docker image (Windows Server)

Install Qt inside Docker image (Windows Server)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 4.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pohlondrej.1
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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-server

      I been told this works good
      https://github.com/miurahr/aqtinstall
      but never tested it.

      P 1 Reply Last reply
      3
      • mrjjM mrjj

        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-server

        I been told this works good
        https://github.com/miurahr/aqtinstall
        but never tested it.

        P Offline
        P Offline
        pohlondrej.1
        wrote on last edited by
        #3

        @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!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved