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. Docker support explain
QtWS25 Last Chance

Docker support explain

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 411 Views
  • 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.
  • M Offline
    M Offline
    marc_123
    wrote on last edited by marc_123
    #1

    I went through a few posts here talking about using docker image that set up QT + Compiler etc, which only repeats the instructions from the official tutorial
    https://doc.qt.io/qtcreator/creator-adding-docker-devices.html

    To me it is more important to understand how it really works, because I need to write such a dockerfile, but there is almost zero information about what such a docker image can look like and how the whole thing works.

    so this is how i imagine it works, QT libs and compiler and ninja etcs are installed in the dockerfile, so when I add the image to the plugin, it will inspect the image and see where all the tools are installed and show the tool set location. And I also need to do the path mounting because it needs to do two volume mapping, one to map the project source code and one place to map the output artifact.

    So whenever I click the build button, it will run this ?

    docker run -v [/host/volume/location]:[/container/storage] myqtimage cmake paramA paramB
    

    where it will invoke the cmake command in the container, grab the source code from the host machine and use the Kit set up in docker container to generate artifacts in the output folder?

    anyone can tell me if my understanding is correct here? and also please share an image file for windows?

    SebastianMS 1 Reply Last reply
    0
    • M marc_123

      I went through a few posts here talking about using docker image that set up QT + Compiler etc, which only repeats the instructions from the official tutorial
      https://doc.qt.io/qtcreator/creator-adding-docker-devices.html

      To me it is more important to understand how it really works, because I need to write such a dockerfile, but there is almost zero information about what such a docker image can look like and how the whole thing works.

      so this is how i imagine it works, QT libs and compiler and ninja etcs are installed in the dockerfile, so when I add the image to the plugin, it will inspect the image and see where all the tools are installed and show the tool set location. And I also need to do the path mounting because it needs to do two volume mapping, one to map the project source code and one place to map the output artifact.

      So whenever I click the build button, it will run this ?

      docker run -v [/host/volume/location]:[/container/storage] myqtimage cmake paramA paramB
      

      where it will invoke the cmake command in the container, grab the source code from the host machine and use the Kit set up in docker container to generate artifacts in the output folder?

      anyone can tell me if my understanding is correct here? and also please share an image file for windows?

      SebastianMS Offline
      SebastianMS Offline
      SebastianM
      wrote on last edited by
      #2

      @marc_123 Inside Qt Creator create Docker device and use it as a kit.
      When Creator is running, in console execute docker ps -a and you'll see that there's container running. Started by Qt Creator.
      Each build and run command is most likely started by docker exec which reference to this newly running container.

      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